1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:utils: Use lpcfg_set_cmdline() in smbcacls

Signed-off-by: Pavel Kalugin <pkalugin@inno.tech>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Pavel Kalugin 2023-08-07 07:25:28 +03:00 committed by Andreas Schneider
parent 6c00718f3d
commit 0e2d13c52f

View File

@ -33,6 +33,7 @@
#include "passdb/machine_sid.h"
#include "../librpc/gen_ndr/ndr_lsa_c.h"
#include "util_sd.h"
#include "lib/param/param.h"
static char DIRSEP_CHAR = '\\';
@ -1501,6 +1502,7 @@ int main(int argc, char *argv[])
char *targetfile = NULL;
NTSTATUS status;
bool ok;
struct loadparm_context *lp_ctx = NULL;
struct poptOption long_options[] = {
POPT_AUTOHELP
@ -1653,8 +1655,9 @@ int main(int argc, char *argv[])
TALLOC_FREE(frame);
exit(1);
}
lp_ctx = samba_cmdline_get_lp_ctx();
/* set default debug level to 1 regardless of what smb.conf sets */
lp_set_cmdline("log level", "1");
lpcfg_set_cmdline(lp_ctx, "log level", "1");
setlinebuf(stdout);
@ -1709,7 +1712,7 @@ int main(int argc, char *argv[])
change_mode = REQUEST_INHERIT;
break;
case 'm':
lp_set_cmdline("client max protocol", poptGetOptArg(pc));
lpcfg_set_cmdline(lp_ctx, "client max protocol", poptGetOptArg(pc));
break;
case 'x':
want_mxac = true;