]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* elf/ldconfig.c (add_dir): Only warn about stat failure if
authorAndreas Jaeger <aj@suse.de>
Thu, 17 May 2001 15:46:45 +0000 (15:46 +0000)
committerAndreas Jaeger <aj@suse.de>
Thu, 17 May 2001 15:46:45 +0000 (15:46 +0000)
opt_verbose.
(search_dir): Likewise.

elf/ldconfig.c

index d13eea01abdb0c0074d6a9a81c5383bfb1ef7aa9..f0fe60d669eecb6c8b4e57a6d06172e386994673 100644 (file)
@@ -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);