]> granicus.if.org Git - shadow/commitdiff
2012-02-13 Mike Frysinger <vapier@gentoo.org>
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 13 Feb 2012 20:09:59 +0000 (20:09 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 13 Feb 2012 20:09:59 +0000 (20:09 +0000)
* lib/nscd.c: Add missing newline to error message.
* lib/nscd.c: If nscd is installed but not in use, then running
`nscd -i` will exit(1). We shouldn't warn in this case since this
is not abnormal behavior.

ChangeLog
lib/nscd.c

index 49b3b8b269d91ae221bee12629fe7980408acf8a..d3b178be45a362703da1b31cc2a9adbfda117f98 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-02-13  Mike Frysinger  <vapier@gentoo.org>
+
+       * lib/nscd.c: Add missing newline to error message.
+       * lib/nscd.c: If nscd is installed but not in use, then running
+       `nscd -i` will exit(1). We shouldn't warn in this case since this
+       is not abnormal behavior.
+
 2012-02-13  Mike Frysinger  <vapier@gentoo.org>
 
        * man/.gitignore: Add generate_mans.deps
index 227c2050c0111df4609589b3a74dc5a2154f693a..7adb58ffdc7188ddf6622b223da3b81274c606d4 100644 (file)
@@ -39,8 +39,11 @@ int nscd_flush_cache (const char *service)
                /* nscd is not installed, or it is installed but uses an
                   interpreter that is missing.  Probably the former. */
                return 0;
+       } else if (code == 1) {
+               /* nscd is installed, but it isn't active. */
+               return 0;
        } else if (code != 0) {
-               (void) fprintf (stderr, _("%s: nscd exited with status %d"),
+               (void) fprintf (stderr, _("%s: nscd exited with status %d\n"),
                                Prog, code);
                (void) fprintf (stderr, _(MSG_NSCD_FLUSH_CACHE_FAILED), Prog);
                return -1;