r24915: Try to quiet down this warning - the 'classic' share code doesn't
authorAndrew Bartlett <abartlet@samba.org>
Mon, 3 Sep 2007 04:05:50 +0000 (04:05 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:03:38 +0000 (15:03 -0500)
support passwords for share-mode security (we don't even support share
mode security, and are unlikely ever to).

Andrew Bartlett
(This used to be commit 0d56ab59c571fd38c3071660ed7db6264300df50)

source4/param/share_classic.c

index 234a6321441cebd633c2b5319c689cd05d28ca7c..c38e5d78dfce81b67ce9cd1b958091d631390169 100644 (file)
@@ -89,6 +89,10 @@ static const char *sclassic_string_option(struct share_config *scfg, const char
                return lp_fstype(s->snum);
        }
 
                return lp_fstype(s->snum);
        }
 
+       if (strcmp(opt_name, SHARE_PASSWORD) == 0) {
+               return defval;
+       }
+
        DEBUG(0,("request for unknown share string option '%s'\n",
                 opt_name));
 
        DEBUG(0,("request for unknown share string option '%s'\n",
                 opt_name));