Same fix for resume as for pause.
authorJeremy Allison <jra@samba.org>
Mon, 23 Jul 2001 20:47:55 +0000 (20:47 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 23 Jul 2001 20:47:55 +0000 (20:47 +0000)
Jeremy.i
(This used to be commit 9444fc554ba31ef516d0d98bbfe7f1af883e3970)

source3/printing/print_cups.c

index 10f5da28a3c109a8d275865b41deef6e60147160..6d5a5460cda51a7257d7ca094e44bace3fa44fbc 100644 (file)
@@ -1101,6 +1101,7 @@ cups_queue_pause(int snum)
 static int
 cups_queue_resume(int snum)
 {
+       extern userdom_struct current_user_info;
        int             ret;            /* Return value */
        http_t          *http;          /* HTTP connection to server */
        ipp_t           *request,       /* IPP Request */
@@ -1157,7 +1158,7 @@ cups_queue_resume(int snum)
        ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri);
 
        ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
-                    NULL, pjob->user);
+                    NULL, current_user_info.unix_name);
 
        /*
        * Do the request and get back a response...