svn commit: samba r22616 - in branches/SAMBA_4_0/source/libcli: .

tridge at samba.org tridge at samba.org
Mon Apr 30 22:38:28 GMT 2007


Author: tridge
Date: 2007-04-30 22:38:27 +0000 (Mon, 30 Apr 2007)
New Revision: 22616

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

Log:

allow the unclist file to not specify a share name, and instead
inherit the share name from the command line if it is not
specified. This allows you to just specify the servers in the unclist,
and connect to the same share on all servers.

Modified:
   branches/SAMBA_4_0/source/libcli/cliconnect.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/cliconnect.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/cliconnect.c	2007-04-30 22:21:46 UTC (rev 22615)
+++ branches/SAMBA_4_0/source/libcli/cliconnect.c	2007-04-30 22:38:27 UTC (rev 22616)
@@ -224,6 +224,9 @@
 	if (p && *p) {
 		*sharename = talloc_strdup(mem_ctx, p);
 		terminate_path_at_separator(*sharename);
+	} else {
+		*sharename = talloc_strdup(mem_ctx, 
+					   lp_parm_string(-1, "torture", "share"));
 	}
 
 	if (*hostname && *sharename) {



More information about the samba-cvs mailing list