summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-01-24 00:34:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:24 -0500
commit5bfa7bef7d48ff3c12c70f099a7c5c348ab64906 (patch)
tree8e3f1c0c88a5fd272013c75caf10061a3d49195a /source4/ntvfs
parent29478d3c23d21067784f85b3c128de62837d186a (diff)
downloadsamba-5bfa7bef7d48ff3c12c70f099a7c5c348ab64906.tar.gz
samba-5bfa7bef7d48ff3c12c70f099a7c5c348ab64906.tar.bz2
samba-5bfa7bef7d48ff3c12c70f099a7c5c348ab64906.zip
r13099: allow shares that point to /
(This used to be commit ac4b8b98392cba69d0d06bce8e9023769ee301d8)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/vfs_posix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c
index bedc81389c..3b52ff6237 100644
--- a/source4/ntvfs/posix/vfs_posix.c
+++ b/source4/ntvfs/posix/vfs_posix.c
@@ -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;