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>
return false;
}
+ /*
+ * Take care that this list must be in longest-match
+ * first order
+ */
if (strncmp(p, "-U", 2) == 0) {
ulen = 2;
found = true;
ulen = 6;
found = true;
is_user = true;
+ } else if (strncmp(p, "--password2", 11) == 0) {
+ ulen = 11;
+ found = true;
} else if (strncmp(p, "--password", 10) == 0) {
ulen = 10;
found = true;