svn commit: samba r15536 - in trunk/source/rpcclient: .

jra at samba.org jra at samba.org
Thu May 11 18:59:34 GMT 2006


Author: jra
Date: 2006-05-11 18:59:33 +0000 (Thu, 11 May 2006)
New Revision: 15536

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15536

Log:
Ignore // or \\ in //server or \\server.
Jeremy.

Modified:
   trunk/source/rpcclient/rpcclient.c


Changeset:
Modified: trunk/source/rpcclient/rpcclient.c
===================================================================
--- trunk/source/rpcclient/rpcclient.c	2006-05-11 18:32:34 UTC (rev 15535)
+++ trunk/source/rpcclient/rpcclient.c	2006-05-11 18:59:33 UTC (rev 15536)
@@ -789,6 +789,11 @@
 		}
 	}
 	
+	if ((server[0] == '/' || server[0] == '\\') &&
+			(server[1] == '/' || server[1] == '\\')) {
+		server += 2;
+	}
+
 	nt_status = cli_full_connection(&cli, global_myname(), server, 
 					opt_ipaddr ? &server_ip : NULL, opt_port,
 					"IPC$", "IPC",  



More information about the samba-cvs mailing list