s3-param: Merge "log file" parameter with lib/param
authorAndrew Bartlett <abartlet@samba.org>
Fri, 27 Jul 2012 00:01:44 +0000 (10:01 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 27 Jul 2012 01:34:22 +0000 (03:34 +0200)
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

index 39097395de08f1954cfcf74041c0277614e3ec31..0891eeb40a7ffd64305916d72afd9718e5aafa51 100644 (file)
@@ -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,
        },