summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-10-01 21:03:15 +0200
committerAndreas Schneider <asn@samba.org>2010-10-02 00:04:45 +0200
commitb3fd5e11e5c380e040d3fd208a1c904404b82c43 (patch)
tree12722e35803085f95594907b889625c4ed8887db /source3
parent100843ac239688a3c328f834b7a9f90478e2e8f9 (diff)
downloadsamba-b3fd5e11e5c380e040d3fd208a1c904404b82c43.tar.gz
samba-b3fd5e11e5c380e040d3fd208a1c904404b82c43.tar.bz2
samba-b3fd5e11e5c380e040d3fd208a1c904404b82c43.zip
s3-spoolss: Fixed print_access_check server_info.
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/nt_printing.c2
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
2 files changed, 3 insertions, 3 deletions
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)) {