aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_unix/pam_unix_passwd.c
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2019-06-27 19:00:41 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2019-06-27 19:00:41 +0200
commit5caf76b1655c22e28d1167b786f741ed47f301b1 (patch)
treea7b12c78132b1ae310a07b0a3eb7a58809df0662 /modules/pam_unix/pam_unix_passwd.c
parent5154aabe8aac27d569059cad3332cd12c7442a8a (diff)
downloadpam-5caf76b1655c22e28d1167b786f741ed47f301b1.tar.gz
pam-5caf76b1655c22e28d1167b786f741ed47f301b1.tar.bz2
pam-5caf76b1655c22e28d1167b786f741ed47f301b1.zip
pam_unix: Correct MAXPASS define name in the previous two commits.
* modules/pam_unix/pam_unix_passwd.c: Change MAX_PASS to MAXPASS. * modules/pam_unix/support.c: Likewise.
Diffstat (limited to 'modules/pam_unix/pam_unix_passwd.c')
-rw-r--r--modules/pam_unix/pam_unix_passwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c
index 4d2f5e2c..4bb1bc56 100644
--- a/modules/pam_unix/pam_unix_passwd.c
+++ b/modules/pam_unix/pam_unix_passwd.c
@@ -577,7 +577,7 @@ static int _pam_unix_approve_pass(pam_handle_t * pamh
}
}
- if (strlen(pass_new) > MAX_PASS) {
+ if (strlen(pass_new) > MAXPASS) {
remark = _("You must choose a shorter password.");
D(("length exceeded [%s]", remark));
} else if (off(UNIX__IAMROOT, ctrl)) {