diff options
author | Günther Deschner <gd@samba.org> | 2004-11-10 02:09:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:11 -0500 |
commit | 784832d2e05eb80f1b30825147a5e81a00c97fa2 (patch) | |
tree | c14f3a1a3af6d500443c8350b550da61fc23f49f /source3/rpcclient | |
parent | d7bbbb28bde0149ff98f2e3bacee455235e3fb92 (diff) | |
download | samba-784832d2e05eb80f1b30825147a5e81a00c97fa2.tar.gz samba-784832d2e05eb80f1b30825147a5e81a00c97fa2.tar.bz2 samba-784832d2e05eb80f1b30825147a5e81a00c97fa2.zip |
r3649: Fix a couple of rpcclient spoolss commands (setprinter, setprintername,
getdriver) w.r.t to printer-naming scheme.
Guenther
(This used to be commit 968c3fc416e836c3958a068df7b4599682028a99)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index f9cd817c8f..4c4704c4ae 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -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]); |