From: Pavel Kalugin Date: Mon, 7 Aug 2023 05:34:14 +0000 (+0300) Subject: s3:utils: Use lpcfg_set_cmdline() in vfstest X-Git-Tag: tevent-0.16.0~830 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1502ef29bf4b7a41cc23d57fa2d245a70663b035;p=thirdparty%2Fsamba.git s3:utils: Use lpcfg_set_cmdline() in vfstest Signed-off-by: Pavel Kalugin Reviewed-by: Andreas Schneider --- diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c index 3f01c431289..b25dfdc41d5 100644 --- a/source3/torture/vfstest.c +++ b/source3/torture/vfstest.c @@ -37,6 +37,7 @@ #include "lib/smbd_shim.h" #include "system/filesys.h" #include "lib/global_contexts.h" +#include "lib/param/param.h" /* List to hold groups of commands */ static struct cmd_list { @@ -205,7 +206,8 @@ static NTSTATUS cmd_debuglevel(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int a } if (argc == 2) { - lp_set_cmdline("log level", argv[1]); + struct loadparm_context *lp_ctx = samba_cmdline_get_lp_ctx(); + lpcfg_set_cmdline(lp_ctx, "log level", argv[1]); } printf("debuglevel is %d\n", DEBUGLEVEL);