From e0912989073980817b5c41bca30b2fab429c7e0f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 17 Jul 2001 00:39:07 +0000 Subject: iFix from "Shahms E. King" to get cups user name right. Jeremy. (This used to be commit 34244c2a8d02d09b60dfba30b239b9764b60d35a) --- source3/printing/print_cups.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/printing') diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index b9929c4823..dd5f1ca188 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -366,7 +366,7 @@ cups_job_delete(int snum, struct printjob *pjob) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", - NULL, cupsUser()); + NULL, pjob->user); /* * Do the request and get back a response... @@ -456,7 +456,7 @@ cups_job_pause(int snum, struct printjob *pjob) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", - NULL, cupsUser()); + NULL, pjob->user); /* * Do the request and get back a response... @@ -546,7 +546,7 @@ cups_job_resume(int snum, struct printjob *pjob) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", - NULL, cupsUser()); + NULL, pjob->user); /* * Do the request and get back a response... @@ -639,7 +639,7 @@ cups_job_submit(int snum, struct printjob *pjob) "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", - NULL, cupsUser()); + NULL, pjob->user); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, pjob->jobname); @@ -1065,7 +1065,7 @@ cups_queue_pause(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, cupsUser()); + NULL, pjob->user); /* * Do the request and get back a response... @@ -1156,7 +1156,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, cupsUser()); + NULL, pjob->user); /* * Do the request and get back a response... -- cgit