]> git.donarmstrong.com Git - unscd.git/commitdiff
Do not always print debugging info upon invalidate. (Closes: #844447)
authorDon Armstrong <don@donarmstrong.com>
Thu, 26 Oct 2017 23:01:06 +0000 (16:01 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 26 Oct 2017 23:01:06 +0000 (16:01 -0700)
debian/changelog
debian/patches/no_debug_on_invalidate [new file with mode: 0644]
debian/patches/series

index 2bb13cff287f1470fa18c9e26b59796fcf732284..bf21cec264d7b3885489831208849765ec719452 100644 (file)
@@ -4,6 +4,7 @@ unscd (0.52-2) unstable; urgency=medium
   * Add missing #!/bin/sh to postinst (Closes: #843283)
   * Use compat level 10
   * Do not stop on upgrade, just restart after upgrade
+  * Do not always print debugging info upon invalidate. (Closes: #844447)
 
  -- Don Armstrong <don@debian.org>  Thu, 26 Oct 2017 15:52:19 -0700
 
diff --git a/debian/patches/no_debug_on_invalidate b/debian/patches/no_debug_on_invalidate
new file mode 100644 (file)
index 0000000..e386c87
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/nscd.c
++++ b/nscd.c
+@@ -2518,6 +2518,9 @@
+                       conffile = optarg;
+                       break;
+               case 'i':
++                      debug &= ~D_DAEMON;
++            if (opt_d_cnt != 0)
++                debug |= (((1U << opt_d_cnt+1) >> 1) - 1) & L_ALL;
+                       /* invalidate */
+                       special_op(optarg); /* exits */
+               case 'K':
index ee65dce580adc226faa57bf20f7e6175934b0f12..9689a285b2c110155828534f58ca0b059e4b1277 100644 (file)
@@ -1,2 +1,3 @@
 change_invalidate_request_info_output
 support_large_numbers_in_config
+no_debug_on_invalidate