diff options
author | Simo Sorce <idra@samba.org> | 2006-09-15 16:27:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:18:46 -0500 |
commit | fa257e78b5e1de1ba12e12968b1b2a6edbead7c6 (patch) | |
tree | 6fece2e18cc59a6914915f69d20a345b6701c109 /source4/param | |
parent | 0305907e427037134da7ee26eeb9f221d15b967f (diff) | |
download | samba-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')
-rw-r--r-- | source4/param/share_classic.c | 3 |
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); } |