Skip to content

Commit

Permalink
If object file can't be opened for reading, output warning only in
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bircoph committed Oct 27, 2011
1 parent 6712d42 commit 51240e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scanelf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 51240e6

Please sign in to comment.