]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:utils: Use lpcfg_set_cmdline() in vfstest
authorPavel Kalugin <pkalugin@inno.tech>
Mon, 7 Aug 2023 05:34:14 +0000 (08:34 +0300)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 23 Aug 2023 08:27:30 +0000 (08:27 +0000)
Signed-off-by: Pavel Kalugin <pkalugin@inno.tech>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/torture/vfstest.c

index 3f01c4312893451ac842c2d62ebd910968f464d6..b25dfdc41d5089fa41c85149fc847a3402fcefdc 100644 (file)
@@ -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);