From fa257e78b5e1de1ba12e12968b1b2a6edbead7c6 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 15 Sep 2006 16:27:55 +0000 Subject: 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) --- source4/param/share_classic.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/param') 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); } -- cgit