lib/cmdline: Also redact --newpassword in samba_cmdline_burn()
authorAndrew Bartlett <abartlet@samba.org>
Fri, 21 Jul 2023 03:39:28 +0000 (15:39 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 21 Jul 2023 06:16:30 +0000 (06:16 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15289

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jul 21 06:16:30 UTC 2023 on atb-devel-224

lib/cmdline/cmdline.c

index dba6292b3185fecdcaa13cfb8927446b3b7a8034..db962146bd27502d5ff91af3ddd09577c12a9222 100644 (file)
@@ -168,6 +168,9 @@ bool samba_cmdline_burn(int argc, char *argv[])
                } else if (strncmp(p, "--password", 10) == 0) {
                        ulen = 10;
                        found = true;
+               } else if (strncmp(p, "--newpassword", 13) == 0) {
+                       ulen = 13;
+                       found = true;
                }
 
                if (found) {