- stevesk@cvs.openbsd.org 2002/09/16 19:55:33
[session.c]
log when _PATH_NOLOGIN exists; ok markus@
diff --git a/ChangeLog b/ChangeLog
index b0b40b2..aaadccd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,9 @@
[channels.c sshconnect.c sshd.c]
remove use of SO_LINGER, it should not be needed. error check
SO_REUSEADDR. fixup comments. ok markus@
+ - stevesk@cvs.openbsd.org 2002/09/16 19:55:33
+ [session.c]
+ log when _PATH_NOLOGIN exists; ok markus@
20020912
- (djm) Made GNOME askpass programs return non-zero if cancel button is
@@ -660,4 +663,4 @@
save auth method before monitor_reset_key_state(); bugzilla bug #284;
ok provos@
-$Id: ChangeLog,v 1.2466 2002/09/19 01:49:37 djm Exp $
+$Id: ChangeLog,v 1.2467 2002/09/19 01:50:48 djm Exp $
diff --git a/session.c b/session.c
index 5da2952..ed48921 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 @@
#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);