1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

cmdline:burn: explicitly burn --username

This is the long form of -U in samba-tool.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15674
(cherry picked from commit 63a83fb7bb)
This commit is contained in:
Douglas Bagnall 2024-07-03 11:23:36 +12:00 committed by Jule Anger
parent 481eb6ab31
commit 8560c854d4
2 changed files with 4 additions and 1 deletions

View File

@ -243,6 +243,10 @@ bool samba_cmdline_burn(int argc, char *argv[])
ulen = 6; ulen = 6;
found = true; found = true;
is_user = 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")) { } else if (strncmp(p, "--", 2) == 0 && strstr(p, "pass")) {
/* /*
* We have many secret options like --password, * We have many secret options like --password,

View File

@ -1 +0,0 @@
^samba.unittests.cmdline.torture_cmdline_burn.none.$