git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29478d3
)
r13099: allow shares that point to /
author
Andrew Tridgell
<tridge@samba.org>
Tue, 24 Jan 2006 00:34:58 +0000
(
00:34
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:51:24 +0000
(13:51 -0500)
(This used to be commit
ac4b8b98392cba69d0d06bce8e9023769ee301d8
)
source4/ntvfs/posix/vfs_posix.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/vfs_posix.c
b/source4/ntvfs/posix/vfs_posix.c
index bedc81389c7033c01dada6e11dd6fcbe169deefa..3b52ff62378ee3a825d3fe6374adbb29635a3bd9 100644
(file)
--- 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;