- stevesk@cvs.openbsd.org 2002/09/16 19:55:33
[session.c] log when _PATH_NOLOGIN exists; ok markus@
This commit is contained in:
parent
e1383cee9d
commit
a6eb2b7f8e
|
@ -10,6 +10,9 @@
|
||||||
[channels.c sshconnect.c sshd.c]
|
[channels.c sshconnect.c sshd.c]
|
||||||
remove use of SO_LINGER, it should not be needed. error check
|
remove use of SO_LINGER, it should not be needed. error check
|
||||||
SO_REUSEADDR. fixup comments. ok markus@
|
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
|
20020912
|
||||||
- (djm) Made GNOME askpass programs return non-zero if cancel button is
|
- (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;
|
save auth method before monitor_reset_key_state(); bugzilla bug #284;
|
||||||
ok provos@
|
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 $
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#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 "ssh.h"
|
||||||
#include "ssh1.h"
|
#include "ssh1.h"
|
||||||
|
@ -1168,6 +1168,8 @@ do_nologin(struct passwd *pw)
|
||||||
#endif
|
#endif
|
||||||
if (f) {
|
if (f) {
|
||||||
/* /etc/nologin exists. Print its contents and exit. */
|
/* /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))
|
while (fgets(buf, sizeof(buf), f))
|
||||||
fputs(buf, stderr);
|
fputs(buf, stderr);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
Loading…
Reference in New Issue