summaryrefslogtreecommitdiffstats
path: root/source3/printing/print_cups.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-07-23 20:47:55 +0000
committerJeremy Allison <jra@samba.org>2001-07-23 20:47:55 +0000
commitcab11894ec59359e7eac97adf18b1d699c8311bf (patch)
tree6492e4354e5d9816f82990d90573fb2490ea4a98 /source3/printing/print_cups.c
parentc0d02ca380184f3a835f3c6b03b408304b2e851b (diff)
downloadsamba-cab11894ec59359e7eac97adf18b1d699c8311bf.tar.gz
samba-cab11894ec59359e7eac97adf18b1d699c8311bf.tar.xz
samba-cab11894ec59359e7eac97adf18b1d699c8311bf.zip
Same fix for resume as for pause.
Jeremy.i (This used to be commit 9444fc554ba31ef516d0d98bbfe7f1af883e3970)
Diffstat (limited to 'source3/printing/print_cups.c')
-rw-r--r--source3/printing/print_cups.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index 10f5da28a3..6d5a5460cd 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -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...