[PATCH] Fix ldconfig message

Andreas Jaeger aj@suse.de
Tue May 8 21:01:00 GMT 2012


Reading BZ #13893 "cross compile issue with prefix: ld.so.conf not found
", I think the user got confused by a warning message and considered it
an error.

So, let's make the message clearer.

Ok to commit?

Andreas

2012-05-08  Andreas Jaeger  <aj@suse.de>

        [BZ #13893]
	* elf/ldconfig.c (parse_conf): Change string to make clear that
	ldconfig only issued a warning if ld.so.conf does not exist.


diff --git a/elf/ldconfig.c b/elf/ldconfig.c
index aa97213..7774372 100644
--- a/elf/ldconfig.c
+++ b/elf/ldconfig.c
@@ -1061,7 +1061,7 @@ parse_conf (const char *filename, bool do_chroot)
 
   if (file == NULL)
     {
-      error (0, errno, _("Can't open configuration file %s"), canon);
+      error (0, errno, _("Warning: cannot open configuration file %s"), canon);
       if (canon != filename)
 	free ((char *) canon);
       return;

-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



More information about the Libc-alpha mailing list