diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -33,7 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "includes.h" | 35 | #include "includes.h" |
36 | RCSID("$OpenBSD: session.c,v 1.149 2002/09/12 19:50:36 stevesk Exp $"); | 36 | RCSID("$OpenBSD: session.c,v 1.150 2002/09/16 19:55:33 stevesk Exp $"); |
37 | 37 | ||
38 | #include "ssh.h" | 38 | #include "ssh.h" |
39 | #include "ssh1.h" | 39 | #include "ssh1.h" |
@@ -1168,6 +1168,8 @@ do_nologin(struct passwd *pw) | |||
1168 | #endif | 1168 | #endif |
1169 | if (f) { | 1169 | if (f) { |
1170 | /* /etc/nologin exists. Print its contents and exit. */ | 1170 | /* /etc/nologin exists. Print its contents and exit. */ |
1171 | log("User %.100s not allowed because %s exists", | ||
1172 | pw->pw_name, _PATH_NOLOGIN); | ||
1171 | while (fgets(buf, sizeof(buf), f)) | 1173 | while (fgets(buf, sizeof(buf), f)) |
1172 | fputs(buf, stderr); | 1174 | fputs(buf, stderr); |
1173 | fclose(f); | 1175 | fclose(f); |