1 |
diff -up e-smith-formmagick-2.0.0/root/usr/lib/perl5/site_perl/esmith/FormMagick.pm.lib64 e-smith-formmagick-2.0.0/root/usr/lib/perl5/site_perl/esmith/FormMagick.pm |
2 |
--- e-smith-formmagick-2.0.0/root/usr/lib/perl5/site_perl/esmith/FormMagick.pm.lib64 2008-10-07 11:35:38.000000000 -0600 |
3 |
+++ e-smith-formmagick-2.0.0/root/usr/lib/perl5/site_perl/esmith/FormMagick.pm 2010-02-04 11:38:27.000000000 -0700 |
4 |
@@ -804,7 +804,11 @@ sub validate_password |
5 |
return $reason unless ($reason eq "OK"); |
6 |
return "OK" unless ($strength eq "strong"); |
7 |
|
8 |
- $reason = fascist_check($pass, '/usr/lib/cracklib_dict'); |
9 |
+ if ( -f '/usr/lib64/cracklib_dict.pwd' ) { |
10 |
+ $reason = fascist_check($pass, '/usr/lib64/cracklib_dict'); |
11 |
+ } else { |
12 |
+ $reason = fascist_check($pass, '/usr/lib/cracklib_dict'); |
13 |
+ } |
14 |
$reason ||= "Software error: password check failed"; |
15 |
|
16 |
return "OK" if ($reason eq "ok"); |