Skip to content

Commit

Permalink
* elf/ldconfig.c (add_dir): Only warn about stat failure if
Browse files Browse the repository at this point in the history
opt_verbose. 
(search_dir): Likewise.
  • Loading branch information
Andreas Jaeger committed May 17, 2001
1 parent 4be8dba commit 8645ad4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions elf/ldconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8645ad4

Please sign in to comment.