1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/param
Andreas Schneider d7a6488da8 lib:param: Set a memory context for the globals if not initialized yet
Typically once the smb.conf starts to be loaded,
loadparm_s3_init_globals() will be called and a memory context for
strings on the static Globals will be created.  But we might call
lpcfg_set_cmdline() before we load the smb.conf file, so we (via a
helper pointer) call loadparm_s3_init_globals() to get that
initialisation done earlier, ensuring that all allocations on Globals is
done on a memory context that we can later TALLOC_FREE() before exit().

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-10-25 22:23:37 +00:00
..
loadparm_ctx.c lib:param: Set a memory context for the globals if not initialized yet 2023-10-25 22:23:37 +00:00
loadparm.c s3:param: Make init_globals() public 2023-10-25 22:23:37 +00:00
loadparm.h s3:param: Make init_globals() public 2023-10-25 22:23:37 +00:00
pyparam_util.c s3: Add s3 net python bindings 2021-04-21 20:51:31 +00:00
pyparam.c s3:param: Use a talloc stackframe in pyparam 2023-10-25 22:23:37 +00:00
pyparam.h s3: Add s3 net python bindings 2021-04-21 20:51:31 +00:00
service.c lib: Add lp_allow_local_address() 2022-11-10 07:27:31 +00:00
test_lp_load.c s3:param: Use lpcfg_set_cmdline() 2023-08-23 08:27:30 +00:00
util.c Change all uses of uint32/16/8 in proto.h to uint32_t/16_t/8_t. 2015-04-29 23:42:20 +02:00
wscript_build s3:rpc_server: Activate samba-dcerpcd 2021-12-10 14:02:30 +00:00