This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
[glibc] ldconfig: Do not print a warning for a missing ld.so.conf file
- From: Florian Weimer <fw at sourceware dot org>
- To: glibc-cvs at sourceware dot org
- Date: 11 Dec 2019 08:20:09 -0000
- Subject: [glibc] ldconfig: Do not print a warning for a missing ld.so.conf file
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;