зеркало из https://github.com/Azure/sonic-openssh.git
- stevesk@cvs.openbsd.org 2002/09/16 19:55:33
[session.c] log when _PATH_NOLOGIN exists; ok markus@
This commit is contained in:
Родитель
e1383cee9d
Коммит
a6eb2b7f8e
|
@ -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 $
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче