Magellan Linux

Contents of /trunk/shadow/patches/shadow-4.1.5-nscd-error-reporting.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1666 - (show annotations) (download)
Fri Mar 2 13:00:08 2012 UTC (12 years, 2 months ago) by niro
File size: 675 byte(s)
-added upstream patch to fix nscd error handling
1 diff --git a/upstream/trunk/lib/nscd.c b/upstream/trunk/lib/nscd.c
2 index 227c205..7adb58f 100644
3 --- a/lib/nscd.c
4 +++ b/lib/nscd.c
5 @@ -39,8 +39,11 @@ int nscd_flush_cache (const char *service)
6 /* nscd is not installed, or it is installed but uses an
7 interpreter that is missing. Probably the former. */
8 return 0;
9 + } else if (code == 1) {
10 + /* nscd is installed, but it isn't active. */
11 + return 0;
12 } else if (code != 0) {
13 - (void) fprintf (stderr, _("%s: nscd exited with status %d"),
14 + (void) fprintf (stderr, _("%s: nscd exited with status %d\n"),
15 Prog, code);
16 (void) fprintf (stderr, _(MSG_NSCD_FLUSH_CACHE_FAILED), Prog);
17 return -1;