summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:47:18 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:26 +0200
commitbff871384a281dab89a3117cfcb45f7cbe0824dd (patch)
tree568e7ddf7a2339bd235a43b7a0066bac02e26f16 /source3
parent7df0e672f237b01f69f1d8671732c56634e49d64 (diff)
downloadsamba-bff871384a281dab89a3117cfcb45f7cbe0824dd.tar.gz
samba-bff871384a281dab89a3117cfcb45f7cbe0824dd.tar.bz2
samba-bff871384a281dab89a3117cfcb45f7cbe0824dd.zip
s3: Lift the smbd_messaging_context from print_job_checks
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/printing.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index f4cbbd3ccb..c537fac2b2 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2508,6 +2508,7 @@ static bool add_to_jobs_changed(struct tdb_print_db *pdb, uint32 jobid)
***************************************************************************/
static WERROR print_job_checks(struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx,
int snum, int *njobs)
{
const char *sharename = lp_const_servicename(snum);
@@ -2515,15 +2516,14 @@ static WERROR print_job_checks(struct auth_serversupplied_info *server_info,
uint64_t minspace;
int ret;
- if (!print_access_check(server_info, smbd_messaging_context(), snum,
+ if (!print_access_check(server_info, msg_ctx, snum,
PRINTER_ACCESS_USE)) {
DEBUG(3, ("print_job_checks: "
"job start denied by security descriptor\n"));
return WERR_ACCESS_DENIED;
}
- if (!print_time_access_check(server_info, smbd_messaging_context(),
- sharename)) {
+ if (!print_time_access_check(server_info, msg_ctx, sharename)) {
DEBUG(3, ("print_job_checks: "
"job start denied by time check\n"));
return WERR_ACCESS_DENIED;
@@ -2651,7 +2651,8 @@ WERROR print_job_start(struct auth_serversupplied_info *server_info,
path = lp_pathname(snum);
- werr = print_job_checks(server_info, snum, &njobs);
+ werr = print_job_checks(server_info, smbd_messaging_context(), snum,
+ &njobs);
if (!W_ERROR_IS_OK(werr)) {
release_print_db(pdb);
return werr;