1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r3649: Fix a couple of rpcclient spoolss commands (setprinter, setprintername,

getdriver) w.r.t to printer-naming scheme.

Guenther
This commit is contained in:
Günther Deschner 2004-11-10 02:09:13 +00:00 committed by Gerald (Jerry) Carter
parent a24df09386
commit 968c3fc416

View File

@ -521,7 +521,7 @@ static WERROR cmd_spoolss_setprinter(struct cli_state *cli,
slprintf(servername, sizeof(servername)-1, "\\\\%s", cli->desthost);
strupper_m(servername);
fstrcpy(printername, argv[1]);
slprintf(printername, sizeof(servername)-1, "%s\\%s", servername, argv[1]);
fstrcpy(user, cli->user_name);
/* get a printer handle */
@ -591,7 +591,7 @@ static WERROR cmd_spoolss_setprintername(struct cli_state *cli,
slprintf(servername, sizeof(servername)-1, "\\\\%s", cli->desthost);
strupper_m(servername);
fstrcpy(printername, argv[1]);
slprintf(printername, sizeof(printername)-1, "%s\\%s", servername, argv[1]);
fstrcpy(user, cli->user_name);
/* get a printer handle */
@ -1036,7 +1036,7 @@ static WERROR cmd_spoolss_getdriver(struct cli_state *cli,
slprintf(servername, sizeof(servername)-1, "\\\\%s", cli->desthost);
strupper_m(servername);
fstrcpy(user, cli->user_name);
fstrcpy(printername, argv[1]);
slprintf(printername, sizeof(servername)-1, "%s\\%s", servername, argv[1]);
if (argc == 3)
info_level = atoi(argv[2]);