From b3fd5e11e5c380e040d3fd208a1c904404b82c43 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 1 Oct 2010 21:03:15 +0200 Subject: s3-spoolss: Fixed print_access_check server_info. --- source3/printing/nt_printing.c | 2 +- source3/rpc_server/srv_spoolss_nt.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index b12d2b9f56..59af598d17 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -2102,7 +2102,7 @@ bool print_access_check(const struct auth_serversupplied_info *server_info, } result = winreg_get_printer_secdesc(mem_ctx, - server_info, + get_server_info_system(), msg_ctx, pname, &secdesc); diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index bb3b05d1b1..a8dac87bc3 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -1823,7 +1823,7 @@ WERROR _spoolss_OpenPrinterEx(struct pipes_struct *p, if (!user_ok_token(uidtoname(p->server_info->utok.uid), NULL, p->server_info->ptok, snum) || - !print_access_check(get_server_info_system(), + !print_access_check(p->server_info, p->msg_ctx, snum, r->in.access_mask)) { @@ -7796,7 +7796,7 @@ static WERROR spoolss_addprinterex_level_2(struct pipes_struct *p, } /* you must be a printer admin to add a new printer */ - if (!print_access_check(get_server_info_system(), + if (!print_access_check(p->server_info, p->msg_ctx, snum, PRINTER_ACCESS_ADMINISTER)) { -- cgit