]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-rpcclient: fix rpcclient after spoolss_EnumPrinterDataEx IDL change.
authorGünther Deschner <gd@samba.org>
Thu, 4 Mar 2010 15:47:10 +0000 (16:47 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Mar 2010 09:31:28 +0000 (10:31 +0100)
Guenther
(cherry picked from commit becbb624eb90b84ff20b128de1aee5f5acfc3dbc)

source3/rpcclient/cmd_spoolss.c

index b0d52069fe5ef3d0afe64bf4021829b59e457a48..3d078d70a44ba321e79ba1b72fed83d189f43ce7 100644 (file)
@@ -2876,9 +2876,7 @@ static WERROR cmd_spoolss_enum_data_ex( struct rpc_pipe_client *cli,
                                          const char **argv)
 {
        WERROR result;
-#if 0
        uint32_t i;
-#endif
        const char *printername;
        struct policy_handle hnd;
        uint32_t count;
@@ -2912,13 +2910,14 @@ static WERROR cmd_spoolss_enum_data_ex( struct rpc_pipe_client *cli,
        if (!W_ERROR_IS_OK(result)) {
                goto done;
        }
-#if 0
+
        for (i=0; i < count; i++) {
                display_printer_data(info[i].value_name,
                                     info[i].type,
-                                    info[i].data);
+                                    info[i].data->data,
+                                    info[i].data->length);
        }
-#endif
+
  done:
        if (is_valid_policy_hnd(&hnd)) {
                rpccli_spoolss_ClosePrinter(cli, mem_ctx, &hnd, NULL);