r3627: Allow to add dummy-form in rpcclient.
authorGünther Deschner <gd@samba.org>
Mon, 8 Nov 2004 23:29:40 +0000 (23:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:10 +0000 (10:53 -0500)
Guenther
(This used to be commit 11622805fb946b7b022d06ec4a85db2bfbf71f12)

source3/rpcclient/cmd_spoolss.c

index a9882d799f8dd6d4b5a3ee4750e13706729050b6..4f936c3d2c78cc0631033b49127d0bd0256acbb0 100644 (file)
@@ -1654,7 +1654,7 @@ static WERROR cmd_spoolss_addform(struct cli_state *cli, TALLOC_CTX *mem_ctx,
        asprintf(&printername, "%s\\%s", servername, argv[1]);
 
        werror = cli_spoolss_open_printer_ex(cli, mem_ctx, printername, "", 
-                                            MAXIMUM_ALLOWED_ACCESS, 
+                                            PRINTER_ALL_ACCESS, 
                                             servername, cli->user_name, &handle);
 
        if (!W_ERROR_IS_OK(werror))