From 1db86e88458d3f9cd159cebbda7f773ba29bacb2 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 9 May 2012 06:08:28 +0200 Subject: [PATCH] Make ldconfig message clearer [BZ #13983] Let not confuse the user and think there's an error instead of a warning. --- ChangeLog | 6 ++++++ NEWS | 4 ++-- elf/ldconfig.c | 6 ++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index ad116e5..3a1eb32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-05-09 Andreas Jaeger + + [BZ #13983] + * elf/ldconfig.c (parse_conf): Change string to make clear that + ldconfig only issued a warning if ld.so.conf does not exist. + 2012-05-08 David S. Miller * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use diff --git a/NEWS b/NEWS index ec7eb92..18f63c5 100644 --- a/NEWS +++ b/NEWS @@ -23,8 +23,8 @@ Version 2.16 13854, 13871, 13872, 13873, 13879, 13883, 13884, 13885, 13886, 13892, 13895, 13908, 13910, 13911, 13912, 13913, 13914, 13915, 13916, 13917, 13918, 13919, 13920, 13921, 13922, 13923, 13924, 13926, 13927, 13928, - 13938, 13941, 13942, 13963, 13967, 13970, 13973, 13979, 14027, 14033, - 14034, 14040, 14049, 14055, 14064 + 13938, 13941, 13942, 13963, 13967, 13970, 13973, 13979, 13983, 14027, + 14033, 14034, 14040, 14049, 14055, 14064 * ISO C11 support: diff --git a/elf/ldconfig.c b/elf/ldconfig.c index aa97213..8d6e77f 100644 --- a/elf/ldconfig.c +++ b/elf/ldconfig.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999-2011, 2012 Free Software Foundation, Inc. +/* Copyright (C) 1999-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Andreas Jaeger , 1999. @@ -1061,7 +1061,9 @@ 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: ignoring configuration file that cannot be opened: %s"), + canon); if (canon != filename) free ((char *) canon); return; -- 2.7.4