]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ldconfig: Do not print a warning for a missing ld.so.conf file
authorFlorian Weimer <fweimer@redhat.com>
Wed, 11 Dec 2019 08:19:39 +0000 (09:19 +0100)
committerFlorian 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

index 139161b3a6283cb3e707f7836b818794c2b7bf7b..62bbe77a88f947de14879e58d2d56b08204916ff 100644 (file)
@@ -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;