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:
@ -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());
|
||||
|
@ -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());
|
||||
|
@ -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());
|
||||
|
Reference in New Issue
Block a user