diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2012-02-15 21:04:51 -0600 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2012-02-15 21:04:51 -0600 |
commit | b3ff1c22a93664f083589a10e30e1f96ca2a15af (patch) | |
tree | 5c693c0c80a9a5f06f7af0a2330f0bae74179698 /testing/shadow | |
parent | d562099d4844c7dbd49830bce70524e8eabad0fc (diff) | |
parent | ecec4d4d3ca64d7929f1f63857e82268798e066b (diff) |
Merge branch 'master' of gitpar:abslibre-mips64el
Diffstat (limited to 'testing/shadow')
-rw-r--r-- | testing/shadow/nscd-error-reporting.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/shadow/nscd-error-reporting.patch b/testing/shadow/nscd-error-reporting.patch new file mode 100644 index 000000000..a4075756e --- /dev/null +++ b/testing/shadow/nscd-error-reporting.patch @@ -0,0 +1,17 @@ +diff --git a/upstream/trunk/lib/nscd.c b/upstream/trunk/lib/nscd.c +index 227c205..7adb58f 100644 +--- a/lib/nscd.c ++++ b/lib/nscd.c +@@ -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; |