diff options
author | Damien Miller <djm@mindrot.org> | 2013-10-30 22:21:50 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-10-30 22:21:50 +1100 |
commit | 5ff30c6b68adeee767dd29bf2369763c6a13c0b3 (patch) | |
tree | af34775607e7ca5317884d5c2e8460f2782b0f43 /session.c | |
parent | 4a3a9d4bbf8048473f5cc202cd8db7164d5e6b8d (diff) |
- djm@cvs.openbsd.org 2013/10/29 09:48:02
[servconf.c servconf.h session.c sshd_config sshd_config.5]
shd_config PermitTTY to disallow TTY allocation, mirroring the
longstanding no-pty authorized_keys option;
bz#2070, patch from Teran McKinney; ok markus@
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: session.c,v 1.267 2013/10/14 21:20:52 djm Exp $ */ | 1 | /* $OpenBSD: session.c,v 1.268 2013/10/29 09:48:02 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
4 | * All rights reserved | 4 | * All rights reserved |
@@ -2062,7 +2062,7 @@ session_pty_req(Session *s) | |||
2062 | u_int len; | 2062 | u_int len; |
2063 | int n_bytes; | 2063 | int n_bytes; |
2064 | 2064 | ||
2065 | if (no_pty_flag) { | 2065 | if (no_pty_flag || !options.permit_tty) { |
2066 | debug("Allocating a pty not permitted for this authentication."); | 2066 | debug("Allocating a pty not permitted for this authentication."); |
2067 | return 0; | 2067 | return 0; |
2068 | } | 2068 | } |