summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-10-01 21:18:13 +0200
committerAndreas Schneider <asn@samba.org>2010-10-02 00:04:45 +0200
commit455bbd5e1e21e3d295b84ee6895097ff420c3d20 (patch)
tree8ae094a436d9649bad66000a9aeb5716db0a9b1b /source3/rpc_server
parentb3fd5e11e5c380e040d3fd208a1c904404b82c43 (diff)
downloadsamba-455bbd5e1e21e3d295b84ee6895097ff420c3d20.tar.gz
samba-455bbd5e1e21e3d295b84ee6895097ff420c3d20.tar.bz2
samba-455bbd5e1e21e3d295b84ee6895097ff420c3d20.zip
s3-spoolss: Fixed print job access.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index a8dac87bc3..07733bd97e 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -5637,7 +5637,7 @@ WERROR _spoolss_StartDocPrinter(struct pipes_struct *p,
return WERR_BADFID;
}
- werr = print_job_start(get_server_info_system(),
+ werr = print_job_start(p->server_info,
p->msg_ctx,
p->client_id->name,
snum,
@@ -5740,7 +5740,7 @@ WERROR _spoolss_WritePrinter(struct pipes_struct *p,
static WERROR control_printer(struct policy_handle *handle, uint32_t command,
struct pipes_struct *p)
{
- const struct auth_serversupplied_info *server_info = get_server_info_system();
+ const struct auth_serversupplied_info *server_info = p->server_info;
int snum;
WERROR errcode = WERR_BADFUNC;
struct printer_handle *Printer = find_printer_index_by_hnd(p, handle);
@@ -5799,7 +5799,7 @@ WERROR _spoolss_AbortPrinter(struct pipes_struct *p,
return WERR_SPL_NO_STARTDOC;
}
- errcode = print_job_delete(get_server_info_system(),
+ errcode = print_job_delete(p->server_info,
p->msg_ctx,
snum,
Printer->jobid);
@@ -7084,7 +7084,7 @@ static WERROR spoolss_setjob_1(TALLOC_CTX *mem_ctx,
WERROR _spoolss_SetJob(struct pipes_struct *p,
struct spoolss_SetJob *r)
{
- const struct auth_serversupplied_info *server_info = get_server_info_system();
+ const struct auth_serversupplied_info *server_info = p->server_info;
int snum;
WERROR errcode = WERR_BADFUNC;