s3-param Make lp_ncalrpc_dir() const
authorAndrew Bartlett <abartlet@samba.org>
Wed, 1 Jun 2011 02:18:00 +0000 (12:18 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 1 Jun 2011 03:30:53 +0000 (05:30 +0200)
This disables % substitutions in the 'ncalrpc dir' parameter.  This is
used as a communication point between multiple parts of the codebase,
and needs to be internally consistent between all the Samba tasks.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Jun  1 05:30:53 CEST 2011 on sn-devel-104

source3/include/proto.h
source3/param/loadparm.c

index 0eae375bbc379daf6518c59b85dd14ce61e99fb2..c6fd38dd81571603f30a3edc3334531dab7121c2 100644 (file)
@@ -1660,7 +1660,7 @@ int lp_min_receive_file_size(void);
 char* lp_perfcount_module(void);
 void lp_set_passdb_backend(const char *backend);
 void widelinks_warning(int snum);
-char *lp_ncalrpc_dir(void);
+const char *lp_ncalrpc_dir(void);
 
 /* The following definitions come from param/loadparm_server_role.c  */
 
index e41e8f17ae9761a725b57091a0251f46791dd1c3..c4cb37b088fc8dd315746e95e6e7fcbbf20a94af 100644 (file)
@@ -6048,7 +6048,7 @@ FN_GLOBAL_INTEGER(lp_client_signing, &Globals.client_signing)
 FN_GLOBAL_INTEGER(lp_server_signing, &Globals.server_signing)
 FN_GLOBAL_INTEGER(lp_client_ldap_sasl_wrapping, &Globals.client_ldap_sasl_wrapping)
 
-FN_GLOBAL_STRING(lp_ncalrpc_dir, &Globals.ncalrpc_dir)
+FN_GLOBAL_CONST_STRING(lp_ncalrpc_dir, &Globals.ncalrpc_dir)
 
 /* local prototypes */