1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

fixed loadparm handling in standalone tests

(This used to be commit 2633f4259e)
This commit is contained in:
Andrew Tridgell
2008-02-15 13:29:32 +11:00
parent b640f475be
commit 60b3144280
3 changed files with 3 additions and 3 deletions

View File

@ -2205,7 +2205,7 @@ static bool split_unc_name(const char *unc, char **server, char **share)
argc -= NSERVERS;
argv += NSERVERS;
lp_ctx = loadparm_init(talloc_autofree_context());
global_loadparm = lp_ctx = loadparm_init(talloc_autofree_context());
lp_load(lp_ctx, dyn_CONFIGFILE);
servers[0].credentials = cli_credentials_init(talloc_autofree_context());

View File

@ -572,7 +572,7 @@ static void usage(void)
argc -= NSERVERS;
argv += NSERVERS;
lp_ctx = loadparm_init(talloc_autofree_context());
global_loadparm = lp_ctx = loadparm_init(talloc_autofree_context());
lp_load(lp_ctx, dyn_CONFIGFILE);
servers[0] = cli_credentials_init(talloc_autofree_context());

View File

@ -325,7 +325,7 @@ static void usage(void)
argc -= 1;
argv += 1;
lp_ctx = loadparm_init(talloc_autofree_context());
global_loadparm = lp_ctx = loadparm_init(talloc_autofree_context());
lp_load(lp_ctx, dyn_CONFIGFILE);
credentials = cli_credentials_init(talloc_autofree_context());