This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]