blob: dcce57c1ced4951a396ff4ca3018be1860f97016 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- src/support/dbmmanage~ Tue Oct 10 06:23:58 2000
+++ src/support/dbmmanage Sun Dec 3 00:45:08 2000
@@ -338,7 +338,7 @@
} elsif (substr($chkpass, 0, 5) eq '{SHA}') {
need_sha1_crypt;
$crypt_method = "sha1";
- } elsif (length($chkpass) == 13 && $chkpass ne $testpass) {
+ } elsif ((length($chkpass) == 13 && $chkpass ne $testpass) || ($chkpass =~ m/^\$[0-9]\$/)) {
$crypt_method = "crypt";
} else {
$crypt_method = "plain";
|