diff options
author | Andreas Jaeger <aj@suse.de> | 2001-05-17 15:46:45 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2001-05-17 15:46:45 +0000 |
commit | 8645ad47297c53794e57af89bc333e6c8813f361 (patch) | |
tree | 8755216b7c2c76867256db0c540b290046a4d594 /elf/ldconfig.c | |
parent | 4be8dba8d28796a2a40acc10e43ba05be0545485 (diff) | |
download | glibc-8645ad47297c53794e57af89bc333e6c8813f361.zip glibc-8645ad47297c53794e57af89bc333e6c8813f361.tar.gz glibc-8645ad47297c53794e57af89bc333e6c8813f361.tar.bz2 |
* elf/ldconfig.c (add_dir): Only warn about stat failure if
opt_verbose.
(search_dir): Likewise.
Diffstat (limited to 'elf/ldconfig.c')
-rw-r--r-- | elf/ldconfig.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/elf/ldconfig.c b/elf/ldconfig.c index d13eea0..f0fe60d 100644 --- a/elf/ldconfig.c +++ b/elf/ldconfig.c @@ -336,7 +336,8 @@ add_dir (const char *line) if (stat64 (entry->path, &stat_buf)) { - error (0, errno, _("Can't stat %s"), entry->path); + if (opt_verbose) + error (0, errno, _("Can't stat %s"), entry->path); free (entry->path); free (entry); return; @@ -688,7 +689,8 @@ search_dir (const struct dir_entry *entry) a directory. */ if (stat64 (real_file_name, &stat_buf)) { - error (0, errno, _("Can't stat %s"), file_name); + if (opt_verbose) + error (0, errno, _("Can't stat %s"), file_name); continue; } is_dir = S_ISDIR (stat_buf.st_mode); |