]> git.donarmstrong.com Git - unscd.git/blobdiff - debian/patches/change_invalidate_request_info_output
refresh patches
[unscd.git] / debian / patches / change_invalidate_request_info_output
index 01b03962ea36950aa19b8a7c3072ff673cf2e3e3..c6993c255b85cfd4d7a49ba57dac9b75caa0733f 100644 (file)
@@ -4,7 +4,7 @@ Origin: debian
 Bug-Debian: http://bugs.debian.org/622230
 --- a/nscd.c
 +++ b/nscd.c
-@@ -2437,7 +2437,7 @@
+@@ -2442,7 +2442,7 @@
  
        if (!arg) { /* shutdown */
                xfull_write(sock, &ureq, sizeof(ureq));
@@ -12,11 +12,11 @@ Bug-Debian: http://bugs.debian.org/622230
 +              fprintf(stderr,"sent shutdown request, exiting\n");
        } else { /* invalidate */
                size_t arg_len = strlen(arg) + 1;
-               struct {
-@@ -2449,7 +2449,9 @@
-               reqdata.req.key_len = arg_len;
-               memcpy(reqdata.arg, arg, arg_len);
-               xfull_write(sock, &reqdata, arg_len + sizeof(ureq));
+               char buf[sizeof(user_req_header) + arg_len];
+@@ -2453,7 +2453,9 @@
+               req->key_len = arg_len;
+               memcpy(req + 1, arg, arg_len);
+               xfull_write(sock, req, sizeof(*req) + arg_len);
 -              printf("sent invalidate(%s) request, exiting\n", arg);
 +        if (debug) {
 +          fprintf(stderr,"sent invalidate(%s) request, exiting\n", arg);