summaryrefslogtreecommitdiff
path: root/source4/param/share_classic.c
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/param/share_classic.c
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/param/share_classic.c')
-rw-r--r--source4/param/share_classic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/param/share_classic.c b/source4/param/share_classic.c
index 75f66b1fd4..794a21c5bf 100644
--- a/source4/param/share_classic.c
+++ b/source4/param/share_classic.c
@@ -84,6 +84,9 @@ static const char *sclassic_string_option(struct share_config *scfg, const char
if (lp_print_ok(s->snum)) {
return "PRINTER";
}
+ if (strcmp("NTFS", lp_fstype(s->snum)) == 0) {
+ return "DISK";
+ }
return lp_fstype(s->snum);
}