From 51240e69d87dca9ab4d480cb0fe6141b88942070 Mon Sep 17 00:00:00 2001 From: bircoph Date: Thu, 27 Oct 2011 20:24:28 +0000 Subject: [PATCH] If object file can't be opened for reading, output warning only in verbose mode, because this is quite common for some libraries to be unreadable for a normal user due to security reasons. git-svn-id: svn://svn.code.sf.net/p/symbol-lookup/code/trunk@268 43bcf1f2-bc33-0410-b139-a31c8fc47933 --- Changelog | 2 +- scanelf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index e2531d5..55b33d0 100644 --- a/Changelog +++ b/Changelog @@ -2,8 +2,8 @@ symlookup v0.5.2 Fuu (ふう) Oct, 28, 2011 * Fix default LDFLAGS for gcc-4.6.x. * Use reentrant strtok_r() to avoid heap corruction in elibc(). Thanks xaionaro for bug reports. - * Optimize comparision function. * Add deb package (no deb queries supported, only packaging). + * Minor optimizations and fixes. * Documentation update. symlookup v0.5.1 Pino (ぴの): Oct, 12, 2010 diff --git a/scanelf.c b/scanelf.c index 236f9b7..186c36c 100644 --- a/scanelf.c +++ b/scanelf.c @@ -209,7 +209,7 @@ void checkfile (const char* const filename, /* preliminary reading of ELF-file */ if ((fd = open(filename, O_RDONLY)) == -1) { - if (opt.verb) + if (opt.verb >= V_VERBOSE) error(0, errno, "warning: can't open file %s for reading", fullfilename); return; }