Remove print that fools kpasswdd.
The output from this print is considered an error message which makes kpasswdd reject a password even though "APPROVED" is printed afterwards. Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
606c549626
commit
b749ee7921
@@ -73,7 +73,6 @@ sub check_repeat
|
|||||||
dbmopen(%DB,$historydb,0600) or die "Internal: Could not open $historydb";
|
dbmopen(%DB,$historydb,0600) or die "Internal: Could not open $historydb";
|
||||||
if (!$DB{$key} || ($timenow - $DB{$key} < $reusetime)) {
|
if (!$DB{$key} || ($timenow - $DB{$key} < $reusetime)) {
|
||||||
$result = "ok";
|
$result = "ok";
|
||||||
print $timenow - $DB{$key} . "\n";
|
|
||||||
$DB{$key}=$timenow;
|
$DB{$key}=$timenow;
|
||||||
}
|
}
|
||||||
dbmclose(%DB) or die "Internal: Could not close $historydb";
|
dbmclose(%DB) or die "Internal: Could not close $historydb";
|
||||||
|
Reference in New Issue
Block a user