summaryrefslogtreecommitdiff
path: root/source4/rpc_server/common
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-09-15 16:27:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:46 -0500
commitfa257e78b5e1de1ba12e12968b1b2a6edbead7c6 (patch)
tree6fece2e18cc59a6914915f69d20a345b6701c109 /source4/rpc_server/common
parent0305907e427037134da7ee26eeb9f221d15b967f (diff)
downloadsamba-fa257e78b5e1de1ba12e12968b1b2a6edbead7c6.tar.gz
samba-fa257e78b5e1de1ba12e12968b1b2a6edbead7c6.tar.bz2
samba-fa257e78b5e1de1ba12e12968b1b2a6edbead7c6.zip
r18558: Fix ShareCheck which was assuming all paths are "C:\"
Also cope with the fact that we define the FSTYPE as NTFS by default. We never use this anywhere else, so we may just change it, but just detect the fact and return DISK in share_classic for now. (This used to be commit 4daf5f7764ce69c14066f7320961c90141f0863a)
Diffstat (limited to 'source4/rpc_server/common')
-rw-r--r--source4/rpc_server/common/share_info.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/rpc_server/common/share_info.c b/source4/rpc_server/common/share_info.c
index cb6ce8b206..25eacf578d 100644
--- a/source4/rpc_server/common/share_info.c
+++ b/source4/rpc_server/common/share_info.c
@@ -87,10 +87,13 @@ const char *dcesrv_common_get_share_path(TALLOC_CTX *mem_ctx, struct dcesrv_cont
return talloc_strdup(mem_ctx, "");
}
- p = talloc_strdup(mem_ctx, share_string_option(scfg, SHARE_PATH, "/"));
+ p = talloc_strdup(mem_ctx, share_string_option(scfg, SHARE_PATH, ""));
if (!p) {
return NULL;
}
+ if (p[0] == '\0') {
+ return p;
+ }
all_string_sub(p, "/", "\\", 0);
return talloc_asprintf(mem_ctx, "C:%s", p);