summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-01 11:19:21 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-01 04:19:05 +0200
commitf331936db2990589047edd4aee61ac298262123d (patch)
tree59a0c6757e5f3d499d83ad55035afb0e962d81d2 /source3/param
parenta74e7fbc6abb16e85eb6ac14193be0e0f664a6f0 (diff)
downloadsamba-f331936db2990589047edd4aee61ac298262123d.tar.gz
samba-f331936db2990589047edd4aee61ac298262123d.tar.bz2
samba-f331936db2990589047edd4aee61ac298262123d.zip
s3-param Make lp_smb_passwd_file() and lp_private_dir() const
This disables % substitutions in the 'smb passwd file' and 'private dir' parameters. These are used all over the codebase, and need to be internally consistent for the life of the process, as they determine the location of secrets.tdb, as well as the passdb databases. Andrew Bartlett
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 6ae866399b..153db7f06b 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -5570,8 +5570,8 @@ 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)
-FN_GLOBAL_STRING(lp_private_dir, &Globals.szPrivateDir)
+FN_GLOBAL_CONST_STRING(lp_smb_passwd_file, &Globals.szSMBPasswdFile)
+FN_GLOBAL_CONST_STRING(lp_private_dir, &Globals.szPrivateDir)
FN_GLOBAL_STRING(lp_serverstring, &Globals.szServerString)
FN_GLOBAL_INTEGER(lp_printcap_cache_time, &Globals.PrintcapCacheTime)
FN_GLOBAL_STRING(lp_addport_cmd, &Globals.szAddPortCommand)