From 24296477908b810cfe2ec6450d4b5deddc7acde6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 27 Jul 2012 10:01:44 +1000 Subject: s3-param: Merge "log file" parameter with lib/param The lib/param code uses a special handler for setting the log file. We need to set this here, so that we can make this table common. Andrew Bartlett --- source3/param/loadparm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 39097395de..0891eeb40a 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -314,6 +314,12 @@ static bool handle_dos_charset(struct loadparm_context *unused, int snum, const static bool handle_printing(struct loadparm_context *unused, int snum, const char *pszParmValue, char **ptr); static bool handle_ldap_debug_level(struct loadparm_context *unused, int snum, const char *pszParmValue, char **ptr); +/* these are parameter handlers which are not needed in the + * source3 code + */ + +#define handle_logfile NULL + static void set_allowed_client_auth(void); static void add_to_file_list(const char *fname, const char *subfname); @@ -1279,7 +1285,7 @@ static struct parm_struct parm_table[] = { .type = P_STRING, .p_class = P_GLOBAL, .offset = GLOBAL_VAR(logfile), - .special = NULL, + .special = handle_logfile, .enum_list = NULL, .flags = FLAG_ADVANCED, }, -- cgit