mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
r13099: allow shares that point to /
This commit is contained in:
parent
0cacd69dd5
commit
ac4b8b9839
@ -124,7 +124,9 @@ static NTSTATUS pvfs_connect(struct ntvfs_module_context *ntvfs,
|
||||
/* for simplicity of path construction, remove any trailing slash now */
|
||||
base_directory = talloc_strdup(pvfs, lp_pathname(tcon->service));
|
||||
NT_STATUS_HAVE_NO_MEMORY(base_directory);
|
||||
trim_string(base_directory, NULL, "/");
|
||||
if (strcmp(base_directory, "/") != 0) {
|
||||
trim_string(base_directory, NULL, "/");
|
||||
}
|
||||
|
||||
pvfs->tcon = tcon;
|
||||
pvfs->base_directory = base_directory;
|
||||
|
Loading…
x
Reference in New Issue
Block a user