summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:46:04 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:26 +0200
commit7df0e672f237b01f69f1d8671732c56634e49d64 (patch)
treed43f8d1e6407546759547f48fcc87a24f0887fb6 /source3/printing
parent2811c258f6e01d10c0eb0cb0537f96bf5f1d6275 (diff)
downloadsamba-7df0e672f237b01f69f1d8671732c56634e49d64.tar.gz
samba-7df0e672f237b01f69f1d8671732c56634e49d64.tar.bz2
samba-7df0e672f237b01f69f1d8671732c56634e49d64.zip
s3: Lift the smbd_messaging_context from print_job_resume
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 89af100a4c..f4cbbd3ccb 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2243,8 +2243,9 @@ pause, or resume print job. User name: %s. Printer name: %s.",
Resume a job.
****************************************************************************/
-bool print_job_resume(struct auth_serversupplied_info *server_info, int snum,
- uint32 jobid, WERROR *errcode)
+bool print_job_resume(struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx,
+ int snum, uint32 jobid, WERROR *errcode)
{
const char *sharename = lp_const_servicename(snum);
struct printjob *pjob;
@@ -2266,7 +2267,7 @@ bool print_job_resume(struct auth_serversupplied_info *server_info, int snum,
}
if (!is_owner(server_info, lp_const_servicename(snum), jobid) &&
- !print_access_check(server_info, smbd_messaging_context(), snum,
+ !print_access_check(server_info, msg_ctx, snum,
JOB_ACCESS_ADMINISTER)) {
DEBUG(3, ("resume denied by security descriptor\n"));
*errcode = WERR_ACCESS_DENIED;