From 63a83fb7bb312731047f361f89766e0be492f83e 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 --- 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 cd212b4dbd3..730aaa53a8e 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.$