aboutsummaryrefslogtreecommitdiff
path: root/patches-applied/007_modules_pam_unix
diff options
context:
space:
mode:
authorvorlon <Unknown>2007-08-31 07:56:42 +0000
committervorlon <Unknown>2007-08-31 07:56:42 +0000
commit10b031295093383e7f06e23c0519d14d1491b7b3 (patch)
treed698a0b4692a56eb2a64fe7acda0331778c916ac /patches-applied/007_modules_pam_unix
parent1b42b4760fc6fa55ead37f241f01f8b39b4d433c (diff)
downloadpam-10b031295093383e7f06e23c0519d14d1491b7b3.tar.gz
pam-10b031295093383e7f06e23c0519d14d1491b7b3.tar.bz2
pam-10b031295093383e7f06e23c0519d14d1491b7b3.zip
restore the same built-in min password len of 6 that upstream uses; fix a
typo panlindrome -> palindrome.
Diffstat (limited to 'patches-applied/007_modules_pam_unix')
-rw-r--r--patches-applied/007_modules_pam_unix4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches-applied/007_modules_pam_unix b/patches-applied/007_modules_pam_unix
index 673d8220..c94abd7a 100644
--- a/patches-applied/007_modules_pam_unix
+++ b/patches-applied/007_modules_pam_unix
@@ -94,7 +94,7 @@ Index: Linux-PAM/modules/pam_unix/support.c
#define SELINUX_ENABLED 0
#endif
-+unsigned int pass_min_len = 1;
++unsigned int pass_min_len = 6;
+unsigned int pass_max_len = 8;
+
/* this is a front-end for module-application conversations */
@@ -505,7 +505,7 @@ Index: Linux-PAM/modules/pam_unix/obscure.c
+ strcat (wrapped, oldmono);
+
+ if (palindrome(oldmono, newmono)) {
-+ msg = "Bad: new password cannot be a panlindrome";
++ msg = "Bad: new password cannot be a palindrome";
+ } else if (strcmp(oldmono, newmono) == 0) {
+ msg = "Bad: new and old password must differ by more than just case";
+ } else if (similar(oldmono, newmono)) {