diff options
| author | Pavel Kalugin <pkalugin@inno.tech> | 2023-08-06 17:39:36 +0300 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2023-08-23 08:27:30 +0000 |
| commit | b9a73ff61bdffb708fd8591eb8787dbb76baef78 (patch) | |
| tree | 364a23bf05932eafe575408b3fe0dca99e59828a /examples | |
| parent | c291ab2a0303bbcfe1591a075868daf173e30541 (diff) | |
| download | samba-b9a73ff61bdffb708fd8591eb8787dbb76baef78.tar.gz samba-b9a73ff61bdffb708fd8591eb8787dbb76baef78.tar.bz2 samba-b9a73ff61bdffb708fd8591eb8787dbb76baef78.zip | |
examples: Use lpcfg_set_cmdline()
Signed-off-by: Pavel Kalugin <pkalugin@inno.tech>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/fuse/smb2mount.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/fuse/smb2mount.c b/examples/fuse/smb2mount.c index 7133927ad16..0594ced1308 100644 --- a/examples/fuse/smb2mount.c +++ b/examples/fuse/smb2mount.c @@ -21,6 +21,7 @@ #include "source3/include/includes.h" #include "popt.h" #include "lib/cmdline/cmdline.h" +#include "lib/param/param.h" #include "client.h" #include "libsmb/proto.h" #include "clifuse.h" @@ -51,6 +52,7 @@ int main(int argc, char *argv[]) { const char **argv_const = discard_const_p(const char *, argv); TALLOC_CTX *frame = talloc_stackframe(); + struct loadparm_context *lp_ctx = NULL; poptContext pc; int opt, ret; int port = 0; @@ -78,8 +80,9 @@ int main(int argc, char *argv[]) TALLOC_FREE(frame); exit(1); } - lp_set_cmdline("client min protocol", "SMB2"); - lp_set_cmdline("client max protocol", "SMB3_11"); + lp_ctx = samba_cmdline_get_lp_ctx(); + lpcfg_set_cmdline(lp_ctx, "client min protocol", "SMB2"); + lpcfg_set_cmdline(lp_ctx, "client max protocol", "SMB3_11"); pc = samba_popt_get_context(getprogname(), argc, |
