* elf/ldconfig.c (add_dir): Only warn about stat failure if

opt_verbose. 
(search_dir): Likewise.
This commit is contained in:
Andreas Jaeger 2001-05-17 15:46:45 +00:00
parent 4be8dba8d2
commit 8645ad4729
1 changed files with 4 additions and 2 deletions

View File

@ -336,6 +336,7 @@ add_dir (const char *line)
if (stat64 (entry->path, &stat_buf))
{
if (opt_verbose)
error (0, errno, _("Can't stat %s"), entry->path);
free (entry->path);
free (entry);
@ -688,6 +689,7 @@ search_dir (const struct dir_entry *entry)
a directory. */
if (stat64 (real_file_name, &stat_buf))
{
if (opt_verbose)
error (0, errno, _("Can't stat %s"), file_name);
continue;
}