From 00be68a8416405e12a27186506f9eb15bca055b3 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 28 Jun 2007 10:32:52 +0000 Subject: r23641: Put check for forbidden values in smbconf into a function. (This will be used in a next step to prevent storing these values in reg_smbconf.c.) Michael --- source/param/loadparm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/param') diff --git a/source/param/loadparm.c b/source/param/loadparm.c index f654dff37ff..c43a0325605 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -3165,10 +3165,7 @@ static BOOL process_registry_globals(BOOL (*pfunc)(const char *, const char *)) &type, &size, &data_p); - if ((strwicmp(valname,"include") == 0) || - (strwicmp(valname, "lock directory") == 0) || - (strwicmp(valname, "lock dir") == 0)) - { + if (registry_smbconf_valname_forbidden(valname)) { DEBUG(10, ("process_registry_globals: Ignoring " "parameter '%s' in registry.\n", valname)); continue; -- cgit