1
0
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:
Andrew Tridgell 2006-01-24 00:34:58 +00:00 committed by Gerald (Jerry) Carter
parent 0cacd69dd5
commit ac4b8b9839

View File

@ -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;