* [PATCH] ldconfig: Do not print a warning for a missing ld.so.conf file
@ 2019-12-09 13:57 Florian Weimer
2019-12-10 19:44 ` Carlos O'Donell
0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2019-12-09 13:57 UTC (permalink / raw)
To: libc-alpha
The configuration file is not needed for working system, so printing a
warning is not helpful.
-----
elf/ldconfig.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/elf/ldconfig.c b/elf/ldconfig.c
index 139161b3a6..62bbe77a88 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] 2+ messages in thread
* Re: [PATCH] ldconfig: Do not print a warning for a missing ld.so.conf file
2019-12-09 13:57 [PATCH] ldconfig: Do not print a warning for a missing ld.so.conf file Florian Weimer
@ 2019-12-10 19:44 ` Carlos O'Donell
0 siblings, 0 replies; 2+ messages in thread
From: Carlos O'Donell @ 2019-12-10 19:44 UTC (permalink / raw)
To: Florian Weimer, libc-alpha
On 12/9/19 8:57 AM, Florian Weimer wrote:
> The configuration file is not needed for working system, so printing a
> warning is not helpful.
Agreed. This annoys me to no end, but I have never gotten around to fixing it.
I see it at the end of ever one of my test installs for a full build.
OK for master.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
> -----
> elf/ldconfig.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/elf/ldconfig.c b/elf/ldconfig.c
> index 139161b3a6..62bbe77a88 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;
>
--
Cheers,
Carlos.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-10 19:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-09 13:57 [PATCH] ldconfig: Do not print a warning for a missing ld.so.conf file Florian Weimer
2019-12-10 19:44 ` Carlos O'Donell
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).