summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-04 15:34:49 +0100
committerGünther Deschner <gd@samba.org>2010-03-05 15:17:59 +0100
commit4956650369156dfff96ccc827e55697ec642240d (patch)
tree1730cddecad06f8e81126624cbb1e450a92cc140 /source3/rpcclient
parent37ca9288d2631b48a8eb50c01d6c0cc462d8ee31 (diff)
downloadsamba-4956650369156dfff96ccc827e55697ec642240d.tar.gz
samba-4956650369156dfff96ccc827e55697ec642240d.tar.bz2
samba-4956650369156dfff96ccc827e55697ec642240d.zip
s3-rpcclient: fix rpcclient after spoolss_SetPrinterData{Ex} IDL change.
Guenther
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_spoolss.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index deecbc5164..8b7152152a 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -2368,6 +2368,7 @@ static WERROR cmd_spoolss_setprinterdata(struct rpc_pipe_client *cli,
union spoolss_PrinterInfo info;
enum winreg_Type type;
union spoolss_PrinterData data;
+ DATA_BLOB blob;
/* parse the command arguments */
if (argc < 5) {
@@ -2470,12 +2471,17 @@ static WERROR cmd_spoolss_setprinterdata(struct rpc_pipe_client *cli,
goto done;
}
+ result = push_spoolss_PrinterData(mem_ctx, &blob, type, &data);
+ if (!W_ERROR_IS_OK(result)) {
+ goto done;
+ }
+
status = rpccli_spoolss_SetPrinterData(cli, mem_ctx,
&pol,
argv[3], /* value_name */
type,
- data,
- 0, /* autocalculated size */
+ blob.data,
+ blob.length,
&result);
if (!W_ERROR_IS_OK(result)) {
printf ("Unable to set [%s=%s]!\n", argv[3], argv[4]);