public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] ldconfig: Do not print a warning for a missing ld.so.conf file
@ 2019-12-11 8:20 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2019-12-11 8:20 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b5a1271c76ad03a2e0ee044ecb46af03d771e40a
commit b5a1271c76ad03a2e0ee044ecb46af03d771e40a
Author: Florian Weimer <fweimer@redhat.com>
Date: Wed Dec 11 09:19:39 2019 +0100
ldconfig: Do not print a warning for a missing ld.so.conf file
The configuration file is not needed for working system, so printing a
warning is not helpful.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diff:
---
elf/ldconfig.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/elf/ldconfig.c b/elf/ldconfig.c
index 139161b..62bbe77 100644
--- 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-11 8:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-11 8:20 [glibc] ldconfig: Do not print a warning for a missing ld.so.conf file Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).