summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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...