summaryrefslogtreecommitdiffstats
path: root/source3/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-27 10:01:44 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-27 03:34:22 +0200
commit24296477908b810cfe2ec6450d4b5deddc7acde6 (patch)
tree728057f08232c30909cedc8aa29fc941d6721b6b /source3/param
parent08691f7eafea0c050be79bad996a6b86a8fa648f (diff)
downloadsamba-24296477908b810cfe2ec6450d4b5deddc7acde6.tar.gz
samba-24296477908b810cfe2ec6450d4b5deddc7acde6.tar.xz
samba-24296477908b810cfe2ec6450d4b5deddc7acde6.zip
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
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c8
1 files changed, 7 insertions, 1 deletions
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,
},