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>
This commit is contained in:
Florian Weimer 2019-12-11 09:19:39 +01:00
parent e46efff895
commit b5a1271c76

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