projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e46efff
)
ldconfig: Do not print a warning for a missing ld.so.conf file
author
Florian Weimer
<fweimer@redhat.com>
Wed, 11 Dec 2019 08:19:39 +0000
(09:19 +0100)
committer
Florian Weimer
<fweimer@redhat.com>
Wed, 11 Dec 2019 08:19:39 +0000
(09:19 +0100)
The configuration file is not needed for working system, so printing a
warning is not helpful.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
elf/ldconfig.c
patch
|
blob
|
history
diff --git
a/elf/ldconfig.c
b/elf/ldconfig.c
index
139161b
..
62bbe77
100644
(file)
--- a/
elf/ldconfig.c
+++ b/
elf/ldconfig.c
@@
-1079,9
+1079,10
@@
parse_conf (const char *filename, bool do_chroot)
if (file == NULL)
{
- error (0, errno, _("\
+ if (errno != ENOENT)
+ error (0, errno, _("\
Warning: ignoring configuration file that cannot be opened: %s"),
- canon);
+
canon);
if (canon != filename)
free ((char *) canon);
return;