diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-06-01 11:13:30 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-06-01 04:19:05 +0200 |
commit | f52b97a1292e4e84fccd4601d341de857cc5e586 (patch) | |
tree | ec083fc66bfc25089dc9ffac755b4f1a65f54707 /source3/param | |
parent | ec9ff19e60907d6858c6a04f3fcd0e61d5c83100 (diff) | |
download | samba-f52b97a1292e4e84fccd4601d341de857cc5e586.tar.gz samba-f52b97a1292e4e84fccd4601d341de857cc5e586.tar.bz2 samba-f52b97a1292e4e84fccd4601d341de857cc5e586.zip |
s3-param Make charset parameters const
This removes the dangerous ability for these parameters to change
based on % substitutions.
Andrew Bartlett
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 02b08a60a2..a8e5f19c40 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -5565,9 +5565,9 @@ static char *lp_string(const char *s) char fn_name(const struct share_params *p) {return(LP_SNUM_OK(p->service)? ServicePtrs[(p->service)]->val : sDefault.val);} FN_GLOBAL_STRING(lp_smb_ports, &Globals.smb_ports) -FN_GLOBAL_STRING(lp_dos_charset, &Globals.dos_charset) -FN_GLOBAL_STRING(lp_unix_charset, &Globals.unix_charset) -FN_GLOBAL_STRING(lp_display_charset, &Globals.display_charset) +FN_GLOBAL_CONST_STRING(lp_dos_charset, &Globals.dos_charset) +FN_GLOBAL_CONST_STRING(lp_unix_charset, &Globals.unix_charset) +FN_GLOBAL_CONST_STRING(lp_display_charset, &Globals.display_charset) FN_GLOBAL_STRING(lp_logfile, &Globals.szLogFile) FN_GLOBAL_STRING(lp_configfile, &Globals.szConfigFile) FN_GLOBAL_STRING(lp_smb_passwd_file, &Globals.szSMBPasswdFile) |