mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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 commit is contained in:
parent
e37064e356
commit
946f5d09ae
@ -224,6 +224,9 @@ BOOL smbcli_parse_unc(const char *unc_name, TALLOC_CTX *mem_ctx,
|
|||||||
if (p && *p) {
|
if (p && *p) {
|
||||||
*sharename = talloc_strdup(mem_ctx, p);
|
*sharename = talloc_strdup(mem_ctx, p);
|
||||||
terminate_path_at_separator(*sharename);
|
terminate_path_at_separator(*sharename);
|
||||||
|
} else {
|
||||||
|
*sharename = talloc_strdup(mem_ctx,
|
||||||
|
lp_parm_string(-1, "torture", "share"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*hostname && *sharename) {
|
if (*hostname && *sharename) {
|
||||||
|
Loading…
Reference in New Issue
Block a user