Package: unscd
Version: 0.52-1+b3
Severity: normal
Tags: patch

Dear maintainer,

it appears that for 'nscd -i', debug is on by default and adding -d
turns debugging output off, whereas the opposite is what would usually
be expected:

$ nscd -i passwd
sent invalidate(passwd) request, exiting
$ nscd -d -i passwd
(no output)

The problem is specific to the -i option.

A possible solution would be the following patch by Holger Weiß
<hol...@zedat.fu-berlin.de>:

--- a/nscd.c
+++ b/nscd.c
@@ -2627,6 +2627,9 @@ int main(int argc, char **argv)
                        conffile = optarg;
                        break;
                case 'i':
+                       debug &= ~D_DAEMON;
+                       if (opt_d_cnt > 0)
+                               debug |= L_DEBUG;
                        /* invalidate */
                        special_op(optarg); /* exits */
                case 'K':

Florian

Reply via email to