]> git.donarmstrong.com Git - unscd.git/commitdiff
add silence cache invalidation
authordon <don@8f7917da-ec0b-0410-a553-b9b0e350d17e>
Sun, 22 Jan 2012 00:07:59 +0000 (00:07 +0000)
committerdon <don@8f7917da-ec0b-0410-a553-b9b0e350d17e>
Sun, 22 Jan 2012 00:07:59 +0000 (00:07 +0000)
debian/patches/series [new file with mode: 0644]
debian/patches/silence_cache_invalidation [new file with mode: 0644]

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..9d5b3aa
--- /dev/null
@@ -0,0 +1 @@
+silence_cache_invalidation
diff --git a/debian/patches/silence_cache_invalidation b/debian/patches/silence_cache_invalidation
new file mode 100644 (file)
index 0000000..99a1a0b
--- /dev/null
@@ -0,0 +1,15 @@
+Index: unscd/nscd.c
+===================================================================
+--- unscd.orig/nscd.c  2012-01-21 16:05:03.000000000 -0800
++++ unscd/nscd.c       2012-01-21 16:05:33.000000000 -0800
+@@ -2391,7 +2391,9 @@
+               reqdata.req.key_len = arg_len;
+               memcpy(reqdata.arg, arg, arg_len);
+               xfull_write(sock, &reqdata, arg_len + sizeof(ureq));
+-              printf("sent invalidate(%s) request, exiting\n", arg);
++              if (debug) {
++                printf("sent invalidate(%s) request, exiting\n", arg);
++              }
+       }
+       exit(0);
+ }