summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/auth.c b/auth.c
index 0e7910943..ee21149df 100644
--- a/auth.c
+++ b/auth.c
@@ -119,13 +119,11 @@ allowed_user(struct passwd * pw)
119 return 0; 119 return 0;
120 } 120 }
121 } 121 }
122#endif
123
124#if defined(HAVE_SHADOW_H) && !defined(DISABLE_SHADOW)
125 passwd = spw->sp_pwdp; 122 passwd = spw->sp_pwdp;
126#else 123#else
127 passwd = pw->pw_passwd; 124 passwd = pw->pw_passwd;
128#endif 125#endif
126
129 /* check for locked account */ 127 /* check for locked account */
130 if (strcmp(passwd, "*LK*") == 0 || passwd[0] == '!') { 128 if (strcmp(passwd, "*LK*") == 0 || passwd[0] == '!') {
131 log("User %.100s not allowed because account is locked", 129 log("User %.100s not allowed because account is locked",