summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-09 18:49:34 +0100
committerGünther Deschner <gd@samba.org>2009-02-10 11:05:02 +0100
commit9d05e91ec062e6c745a1b51c99b9d4c3df0961f1 (patch)
treebbe64267cd764f020ce8927b757de66c8241995a /source3/utils
parentb19b6aea1258de18eec6832199f2b736a930b095 (diff)
downloadsamba-9d05e91ec062e6c745a1b51c99b9d4c3df0961f1.tar.gz
samba-9d05e91ec062e6c745a1b51c99b9d4c3df0961f1.tar.bz2
samba-9d05e91ec062e6c745a1b51c99b9d4c3df0961f1.zip
s3-rpcclient: use rpccli_spoolss_openprinter_ex helper.
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_printer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index a40d5cadfd..41a5e8fded 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -736,9 +736,10 @@ static bool net_spoolss_open_printer_ex(struct rpc_pipe_client *pipe_hnd,
pipe_hnd->srv_name_slash, username, printername2, access_required));
/* open printer */
- result = rpccli_spoolss_open_printer_ex(pipe_hnd, mem_ctx, printername2,
- "", access_required,
- pipe_hnd->srv_name_slash, username, hnd);
+ result = rpccli_spoolss_openprinter_ex(pipe_hnd, mem_ctx,
+ printername2,
+ access_required,
+ hnd);
/* be more verbose */
if (W_ERROR_V(result) == W_ERROR_V(WERR_ACCESS_DENIED)) {