svn commit: samba r13099 - in
branches/SAMBA_4_0/source/ntvfs/posix: .
tridge at samba.org
tridge at samba.org
Tue Jan 24 00:34:59 GMT 2006
Author: tridge
Date: 2006-01-24 00:34:58 +0000 (Tue, 24 Jan 2006)
New Revision: 13099
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13099
Log:
allow shares that point to /
Modified:
branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c 2006-01-24 00:16:54 UTC (rev 13098)
+++ branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c 2006-01-24 00:34:58 UTC (rev 13099)
@@ -124,7 +124,9 @@
/* 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;
More information about the samba-cvs
mailing list