summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-25 01:11:01 +0100
committerGünther Deschner <gd@samba.org>2009-02-25 11:16:29 +0100
commit109ba07b0e2ce45cc0a960bcafd0e8d28c877ae3 (patch)
tree3f314f9ad9ebdab3477110a6c59c7d2f2f52d86a /source3/utils
parentf8af5130d5515e017330a2123b933109599e072c (diff)
downloadsamba-109ba07b0e2ce45cc0a960bcafd0e8d28c877ae3.tar.gz
samba-109ba07b0e2ce45cc0a960bcafd0e8d28c877ae3.tar.bz2
samba-109ba07b0e2ce45cc0a960bcafd0e8d28c877ae3.zip
s3-spoolss: use rpccli_spoolss_addprinterex wrapper.
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_printer.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index 0f21e1758b..f4dd824c84 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -2123,6 +2123,7 @@ NTSTATUS rpc_printer_migrate_printers_internals(struct net_context *c,
bool got_hnd_src = false;
bool got_hnd_dst = false;
struct rpc_pipe_client *pipe_hnd_dst = NULL;
+ struct spoolss_SetPrinterInfoCtr info_ctr;
DEBUG(3,("copying printers\n"));
@@ -2207,7 +2208,13 @@ NTSTATUS rpc_printer_migrate_printers_internals(struct net_context *c,
/* copy each src printer to a dst printer 1:1,
maybe some values have to be changed though */
d_printf("creating printer: %s\n", printername);
- result = rpccli_spoolss_addprinterex (pipe_hnd_dst, mem_ctx, level, &ctr_src);
+
+ info_ctr.level = level;
+ info_ctr.info.info2 = (struct spoolss_SetPrinterInfo2 *)&info_src.info2;
+
+ result = rpccli_spoolss_addprinterex(pipe_hnd_dst,
+ mem_ctx,
+ &info_ctr);
if (W_ERROR_IS_OK(result))
d_printf ("printer [%s] successfully added.\n", printername);