summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-07-05 08:59:43 +1000
committerDamien Miller <djm@mindrot.org>2008-07-05 08:59:43 +1000
commit22989f1b5e845830abb2f0598907a9894e9fcb4b (patch)
tree88e87eaf58c24354d9f565e662f52cd6eb5ecef3 /auth.c
parentd8968adb5faef58508bb5e7dab7cdbaf5b0e90d5 (diff)
- (djm) [auth.c] Fixed test for locked account on HP/UX with shadowed
passwords disabled. bz#1083 report & patch from senthilkumar_sen AT hotpop.com, w/ dtucker@
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/auth.c b/auth.c
index c2d298f1b..84aa2c5e8 100644
--- a/auth.c
+++ b/auth.c
@@ -114,6 +114,7 @@ allowed_user(struct passwd * pw)
114#endif /* USE_SHADOW */ 114#endif /* USE_SHADOW */
115 115
116 /* grab passwd field for locked account check */ 116 /* grab passwd field for locked account check */
117 passwd = pw->pw_passwd;
117#ifdef USE_SHADOW 118#ifdef USE_SHADOW
118 if (spw != NULL) 119 if (spw != NULL)
119#ifdef USE_LIBIAF 120#ifdef USE_LIBIAF
@@ -121,8 +122,6 @@ allowed_user(struct passwd * pw)
121#else 122#else
122 passwd = spw->sp_pwdp; 123 passwd = spw->sp_pwdp;
123#endif /* USE_LIBIAF */ 124#endif /* USE_LIBIAF */
124#else
125 passwd = pw->pw_passwd;
126#endif 125#endif
127 126
128 /* check for locked account */ 127 /* check for locked account */