summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:42:47 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:26 +0200
commit8dcbeecd6d0aac40da23aef8a4e126faa1bf43e2 (patch)
treea42cd77e6b02f990f1e5182d58849b224c7a0a09 /source3/printing
parent4a514d2261b7528696f96bb29717fb7a20708869 (diff)
downloadsamba-8dcbeecd6d0aac40da23aef8a4e126faa1bf43e2.tar.gz
samba-8dcbeecd6d0aac40da23aef8a4e126faa1bf43e2.tar.bz2
samba-8dcbeecd6d0aac40da23aef8a4e126faa1bf43e2.zip
s3: Lift the smbd_messaging_context from print_job_delete
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index ec9274cb35..d3c8db3df5 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2112,6 +2112,7 @@ static bool is_owner(struct auth_serversupplied_info *server_info,
****************************************************************************/
WERROR print_job_delete(struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx,
int snum, uint32_t jobid)
{
const char* sharename = lp_const_servicename(snum);
@@ -2125,7 +2126,7 @@ WERROR print_job_delete(struct auth_serversupplied_info *server_info,
owns their job. */
if (!owner &&
- !print_access_check(server_info, smbd_messaging_context(), snum,
+ !print_access_check(server_info, msg_ctx, snum,
JOB_ACCESS_ADMINISTER)) {
DEBUG(3, ("delete denied by security descriptor\n"));