summaryrefslogtreecommitdiff
path: root/source3/smbd/lanman.c
diff options
context:
space:
mode:
authorDavid O'Neill <dmo@samba.org>2001-01-22 16:59:24 +0000
committerDavid O'Neill <dmo@samba.org>2001-01-22 16:59:24 +0000
commit7599c82cceec73fe33b6daa4a908937aed768f80 (patch)
tree60b0c2b47eb9d8734b0045630f9f027af6095cb0 /source3/smbd/lanman.c
parent912dbe49ce25563413746d3bcb62ac3f3cd0f4cb (diff)
downloadsamba-7599c82cceec73fe33b6daa4a908937aed768f80.tar.gz
samba-7599c82cceec73fe33b6daa4a908937aed768f80.tar.bz2
samba-7599c82cceec73fe33b6daa4a908937aed768f80.zip
Changes from APPLIANCE_HEAD:
source/smbd/lanman.c - cleanup and bug fix for win9x print queue purge. source/printing/printing.c - cleanup and bug fix for win9x print queue purge. - print_job_end() changed to cleanup spool file in the event of a failure returned from the print_run_command() (This used to be commit 0235fbef37b400a2bf875163878e497282cd1739)
Diffstat (limited to 'source3/smbd/lanman.c')
-rw-r--r--source3/smbd/lanman.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index a2178f052b..fd59f4603a 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -1947,6 +1947,7 @@ static BOOL api_WPrintQueueCtrl(connection_struct *conn,uint16 vuid, char *param
char *QueueName = skip_string(str2,1);
int errcode = NERR_notsupported;
int snum;
+ extern struct current_user current_user;
/* check it's a supported varient */
if (!(strcsequal(str1,"z") && strcsequal(str2,"")))
@@ -1965,13 +1966,13 @@ static BOOL api_WPrintQueueCtrl(connection_struct *conn,uint16 vuid, char *param
switch (function) {
case 74: /* Pause queue */
- if (print_queue_pause(NULL, snum, &errcode)) errcode = NERR_Success;
+ if (print_queue_pause(&current_user, snum, &errcode)) errcode = NERR_Success;
break;
case 75: /* Resume queue */
- if (print_queue_resume(NULL, snum, &errcode)) errcode = NERR_Success;
+ if (print_queue_resume(&current_user, snum, &errcode)) errcode = NERR_Success;
break;
case 103: /* Purge */
- if (print_queue_purge(NULL, snum, &errcode)) errcode = NERR_Success;
+ if (print_queue_purge(&current_user, snum, &errcode)) errcode = NERR_Success;
break;
}