]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:rpc_server: Use lpcfg_set_cmdline() in test_mdsparser_es
authorPavel Kalugin <pkalugin@inno.tech>
Sun, 6 Aug 2023 19:29:02 +0000 (22:29 +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/rpc_server/mdssvc/test_mdsparser_es.c

index af2b8e648407b50dfc60c80155c7190915b15a11..02270a9b0662e82237c899693d9176a691ee6ce9 100644 (file)
@@ -264,6 +264,7 @@ int main(int argc, const char *argv[])
        int opt;
        bool ok;
        TALLOC_CTX *frame = talloc_stackframe();
+       struct loadparm_context *lp_ctx = NULL;
 
        smb_init_locale();
 
@@ -275,7 +276,8 @@ int main(int argc, const char *argv[])
                TALLOC_FREE(frame);
                exit(1);
        }
-       lp_set_cmdline("log level", "1");
+       lp_ctx = samba_cmdline_get_lp_ctx();
+       lpcfg_set_cmdline(lp_ctx, "log level", "1");
 
        pc = samba_popt_get_context(getprogname(),
                                    argc,