summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-06-02 03:03:28 +0000
committerTim Potter <tpot@samba.org>2001-06-02 03:03:28 +0000
commit2eef56f9fa056766922ca05cc0a2cb0615e7faca (patch)
tree2c76bf2d9da33a91ba1e308f6a87ab726836d51a /source3
parente76caa5a8b2015211741253b5aa4e069621e411a (diff)
downloadsamba-2eef56f9fa056766922ca05cc0a2cb0615e7faca.tar.gz
samba-2eef56f9fa056766922ca05cc0a2cb0615e7faca.tar.bz2
samba-2eef56f9fa056766922ca05cc0a2cb0615e7faca.zip
i18n bugfix merge from appliance.
(This used to be commit 73eb539da641ce806690bbd893f126859d531c98)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 1d1eced2ea..74f40d80ff 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -1353,7 +1353,12 @@ static BOOL srv_spoolss_replyopenprinter(char *printer, uint32 localprinter, uin
* and connect to the IPC$ share anonumously
*/
if (smb_connections==0) {
- if(!spoolss_connect_to_client(&cli, printer+2)) /* the +2 is to strip the leading 2 backslashs */
+ fstring unix_printer;
+
+ fstrcpy(unix_printer, printer+2); /* the +2 is to strip the leading 2 backslashs */
+ dos_to_unix(unix_printer, True);
+
+ if(!spoolss_connect_to_client(&cli, unix_printer))
return False;
message_register(MSG_PRINTER_NOTIFY, srv_spoolss_receive_message);