From: Carsten Jacobi Date: Mon, 10 Dec 2007 18:29:41 +0000 (+0000) Subject: STABLE14-pam-expires-setting-should-be-32bit-20071210 X-Git-Tag: openafs-stable-1_4_7pre1~124 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6f6d9e6ad01114d004d76c4dfce2a3dd88e8da13;p=packages%2Fo%2Fopenafs.git STABLE14-pam-expires-setting-should-be-32bit-20071210 LICENSE IPL10 store as a 32 bit value explicitly so 32 bit routines don't leave garbage around here. (cherry picked from commit c057063abea93733170c1b31c91b52050a150a98) --- diff --git a/src/pam/afs_setcred.c b/src/pam/afs_setcred.c index e6713f3f0..3ae734d92 100644 --- a/src/pam/afs_setcred.c +++ b/src/pam/afs_setcred.c @@ -62,7 +62,7 @@ pam_sm_setcred(pam_handle_t * pamh, int flags, int argc, const char **argv) int auth_ok = 0; char *lh; char *user = NULL; - long password_expires = -1; + int password_expires = -1; char *reason = NULL; struct passwd unix_pwd, *upwd = NULL; char upwd_buf[2048]; /* size is a guess. */