1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s3:param: Use lpcfg_set_cmdline()

Signed-off-by: Pavel Kalugin <pkalugin@inno.tech>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Pavel Kalugin 2023-08-06 17:25:33 +03:00 committed by Andreas Schneider
parent 81226b5179
commit c291ab2a03

View File

@ -19,6 +19,7 @@
#include "includes.h"
#include "lib/cmdline/cmdline.h"
#include "lib/param/param.h"
int main(int argc, const char **argv)
{
@ -46,6 +47,7 @@ int main(int argc, const char **argv)
};
TALLOC_CTX *frame = talloc_stackframe();
struct loadparm_context *lp_ctx = NULL;
smb_init_locale();
@ -57,7 +59,8 @@ int main(int argc, const char **argv)
TALLOC_FREE(frame);
exit(ENOMEM);
}
lp_set_cmdline("log level", "0");
lp_ctx = samba_cmdline_get_lp_ctx();
lpcfg_set_cmdline(lp_ctx, "log level", "0");
pc = samba_popt_get_context(getprogname(),
argc,