summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-17 05:33:48 +0000
committerTim Potter <tpot@samba.org>2002-05-17 05:33:48 +0000
commit7a6a5bc6d758d278e4b39806978ea2b3eeaaaf9d (patch)
treedb9173a26200a2a11608a741db89fc52dcc71f35 /source3/libsmb
parent6ee4366093b24251aa52c272512b2efacb9582d8 (diff)
downloadsamba-7a6a5bc6d758d278e4b39806978ea2b3eeaaaf9d.tar.gz
samba-7a6a5bc6d758d278e4b39806978ea2b3eeaaaf9d.tar.bz2
samba-7a6a5bc6d758d278e4b39806978ea2b3eeaaaf9d.zip
NT sends the server name prepended with \\ for a enumerate printers RPC
call so we probably should as well. (This used to be commit 39c0218e5b4132e60401c2fc25fcbc88be94f87f)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cli_spoolss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/cli_spoolss.c b/source3/libsmb/cli_spoolss.c
index 754b7b20a5..28f4f481fa 100644
--- a/source3/libsmb/cli_spoolss.c
+++ b/source3/libsmb/cli_spoolss.c
@@ -420,8 +420,8 @@ WERROR cli_spoolss_enum_printers(struct cli_state *cli, TALLOC_CTX *mem_ctx,
ZERO_STRUCT(q);
ZERO_STRUCT(r);
- fstrcpy (server, cli->desthost);
- strupper (server);
+ slprintf (server, sizeof(fstring)-1, "\\\\%s", cli->desthost);
+ strupper (server);
/* Initialise input parameters */