From 4694eda1c6441fc81833448933381d0306febb51 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 21 Oct 2013 15:45:04 -0700 Subject: [PATCH] New upstream release * New upstream release * Silence the cache invalidation output (Closes: #622230) --- debian/changelog | 7 ++++++ ... => change_invalidate_request_info_output} | 23 ++++++++++++------- debian/patches/series | 3 ++- 3 files changed, 24 insertions(+), 9 deletions(-) rename debian/patches/{silence_cache_invalidation => change_invalidate_request_info_output} (53%) diff --git a/debian/changelog b/debian/changelog index 9209e4f..6b9ba82 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +unscd (0.51-1) unstable; urgency=low + + * New upstream release + * Silence the cache invalidation output (Closes: #622230) + + -- + unscd (0.49-1) unstable; urgency=low * New upstream release diff --git a/debian/patches/silence_cache_invalidation b/debian/patches/change_invalidate_request_info_output similarity index 53% rename from debian/patches/silence_cache_invalidation rename to debian/patches/change_invalidate_request_info_output index 4df8ba7..d5dfb17 100644 --- a/debian/patches/silence_cache_invalidation +++ b/debian/patches/change_invalidate_request_info_output @@ -2,18 +2,25 @@ From: Don Armstrong Subject: Silence cache invalidation requests unless in debug mode Origin: debian, http://websvn.donarmstrong.com/filedetails.php?repname=deb_pkgs&path=%2Funscd%2Ftrunk%2Fdebian%2Fpatches%2Fsilence_cache_invalidation Bug-Debian: http://bugs.debian.org/622230 -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 @@ +--- a/nscd.c ++++ b/nscd.c +@@ -2432,7 +2432,7 @@ + + if (!arg) { /* shutdown */ + xfull_write(sock, &ureq, sizeof(ureq)); +- printf("sent shutdown request, exiting\n"); ++ fprintf(stderr,"sent shutdown request, exiting\n"); + } else { /* invalidate */ + size_t arg_len = strlen(arg) + 1; + struct { +@@ -2444,7 +2444,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); -+ } ++ if (debug) { ++ fprintf(stderr,"sent invalidate(%s) request, exiting\n", arg); ++ } } exit(0); } diff --git a/debian/patches/series b/debian/patches/series index 9d5b3aa..c5742c0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ -silence_cache_invalidation +change_invalidate_request_info_output + -- 2.39.2