1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

Remove the char[1024] strings from dynconfig. Replace

them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2)
This commit is contained in:
Jeremy Allison
2007-12-10 11:30:37 -08:00
parent 0c0054fe16
commit 7faee02d0d
55 changed files with 406 additions and 149 deletions

View File

@ -6900,15 +6900,15 @@ smbc_init_context(SMBCCTX *context)
if (!conf_loaded) {
/*
* Well, if that failed, try the dyn_CONFIGFILE
* Well, if that failed, try the get_dyn_CONFIGFILE
* Which points to the standard locn, and if that
* fails, silently ignore it and use the internal
* defaults ...
*/
if (!lp_load(dyn_CONFIGFILE, True, False, False, False)) {
if (!lp_load(get_dyn_CONFIGFILE(), True, False, False, False)) {
DEBUG(5, ("Could not load config file: %s\n",
dyn_CONFIGFILE));
get_dyn_CONFIGFILE()));
} else if (home) {
char *conf;
/*