summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-09-19 11:50:48 +1000
committerDamien Miller <djm@mindrot.org>2002-09-19 11:50:48 +1000
commita6eb2b7f8ebb2eef6f21c4da08ac11a97a38a190 (patch)
treec6f65d60116722c880d4f8dfd2e6e91157e18088 /session.c
parente1383cee9d671906424797c084940b2d382f2813 (diff)
- stevesk@cvs.openbsd.org 2002/09/16 19:55:33
[session.c] log when _PATH_NOLOGIN exists; ok markus@
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/session.c b/session.c
index 5da29528..ed489214 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: session.c,v 1.149 2002/09/12 19:50:36 stevesk Exp $");
+RCSID("$OpenBSD: session.c,v 1.150 2002/09/16 19:55:33 stevesk Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -1168,6 +1168,8 @@ do_nologin(struct passwd *pw)
#endif
if (f) {
/* /etc/nologin exists. Print its contents and exit. */
+ log("User %.100s not allowed because %s exists",
+ pw->pw_name, _PATH_NOLOGIN);
while (fgets(buf, sizeof(buf), f))
fputs(buf, stderr);
fclose(f);