summaryrefslogtreecommitdiff
path: root/source4/libcli/cliconnect.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-04-30 22:38:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:52 -0500
commitb7e20c87e317ae73feb7f393a38d0ab0fa64d5d8 (patch)
treeac24a26b7e84f485de9e3253058075c1bbcb7086 /source4/libcli/cliconnect.c
parentf5a94f978b9221bbf79e3d0d3fe8ad5d735509a1 (diff)
downloadsamba-b7e20c87e317ae73feb7f393a38d0ab0fa64d5d8.tar.gz
samba-b7e20c87e317ae73feb7f393a38d0ab0fa64d5d8.tar.bz2
samba-b7e20c87e317ae73feb7f393a38d0ab0fa64d5d8.zip
r22616: 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. (This used to be commit 946f5d09ae204348026170173cf2bfd30d49e4f2)
Diffstat (limited to 'source4/libcli/cliconnect.c')
-rw-r--r--source4/libcli/cliconnect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c
index 45f44adba1..27f9736371 100644
--- a/source4/libcli/cliconnect.c
+++ b/source4/libcli/cliconnect.c
@@ -224,6 +224,9 @@ BOOL smbcli_parse_unc(const char *unc_name, TALLOC_CTX *mem_ctx,
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) {