mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:utils: Use lpcfg_set_cmdline() in testparm
Signed-off-by: Pavel Kalugin <pkalugin@inno.tech> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
91e5859b50
commit
b37269e032
@ -35,6 +35,7 @@
|
|||||||
#include "system/filesys.h"
|
#include "system/filesys.h"
|
||||||
#include "lib/cmdline/cmdline.h"
|
#include "lib/cmdline/cmdline.h"
|
||||||
#include "lib/param/loadparm.h"
|
#include "lib/param/loadparm.h"
|
||||||
|
#include "lib/param/param.h"
|
||||||
#include "lib/crypto/gnutls_helpers.h"
|
#include "lib/crypto/gnutls_helpers.h"
|
||||||
#include "cmdline_contexts.h"
|
#include "cmdline_contexts.h"
|
||||||
|
|
||||||
@ -889,6 +890,7 @@ static void do_per_share_checks(int s)
|
|||||||
};
|
};
|
||||||
|
|
||||||
TALLOC_CTX *frame = talloc_stackframe();
|
TALLOC_CTX *frame = talloc_stackframe();
|
||||||
|
struct loadparm_context *lp_ctx = NULL;
|
||||||
|
|
||||||
smb_init_locale();
|
smb_init_locale();
|
||||||
|
|
||||||
@ -900,13 +902,14 @@ static void do_per_share_checks(int s)
|
|||||||
ret = 1;
|
ret = 1;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
lp_ctx = samba_cmdline_get_lp_ctx();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set the default debug level to 1.
|
* Set the default debug level to 1.
|
||||||
* Allow it to be overridden by the command line,
|
* Allow it to be overridden by the command line,
|
||||||
* not by smb.conf.
|
* not by smb.conf.
|
||||||
*/
|
*/
|
||||||
lp_set_cmdline("log level", "1");
|
lpcfg_set_cmdline(lp_ctx, "log level", "1");
|
||||||
|
|
||||||
pc = samba_popt_get_context(getprogname(),
|
pc = samba_popt_get_context(getprogname(),
|
||||||
argc,
|
argc,
|
||||||
|
Loading…
Reference in New Issue
Block a user