From 8560c854d4c0dc4c0a4fccccdc072a7e358162e7 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 3 Jul 2024 11:23:36 +1200 Subject: [PATCH] cmdline:burn: explicitly burn --username This is the long form of -U in samba-tool. Signed-off-by: Douglas Bagnall Reviewed-by: Jo Sutton BUG: https://bugzilla.samba.org/show_bug.cgi?id=15674 (cherry picked from commit 63a83fb7bb312731047f361f89766e0be492f83e) --- lib/cmdline/cmdline.c | 4 ++++ selftest/knownfail.d/cmdline | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) delete mode 100644 selftest/knownfail.d/cmdline diff --git a/lib/cmdline/cmdline.c b/lib/cmdline/cmdline.c index 5fb9e306d99..81f37774dca 100644 --- a/lib/cmdline/cmdline.c +++ b/lib/cmdline/cmdline.c @@ -243,6 +243,10 @@ bool samba_cmdline_burn(int argc, char *argv[]) ulen = 6; found = true; is_user = true; + } else if (strneq_cmdline_exact(p, "--username", 10)) { + ulen = 10; + found = true; + is_user = true; } else if (strncmp(p, "--", 2) == 0 && strstr(p, "pass")) { /* * We have many secret options like --password, diff --git a/selftest/knownfail.d/cmdline b/selftest/knownfail.d/cmdline deleted file mode 100644 index c9e4a86609c..00000000000 --- a/selftest/knownfail.d/cmdline +++ /dev/null @@ -1 +0,0 @@ -^samba.unittests.cmdline.torture_cmdline_burn.none.$