diff options
author | 2015-12-23 13:08:24 +0000 | |
---|---|---|
committer | 2015-12-23 13:08:24 +0000 | |
commit | 0983b096d14cfae6f6536f33984a78ccef3a0cb9 (patch) | |
tree | 2ab038911329c9ce6a07e834b6d2f5898bf5469e | |
parent | Drop unused goto label. (diff) | |
download | wireguard-openbsd-0983b096d14cfae6f6536f33984a78ccef3a0cb9.tar.xz wireguard-openbsd-0983b096d14cfae6f6536f33984a78ccef3a0cb9.zip |
Add rpath to telnet's more restrictive pledge; otherwise if the server requests
the client to send the next terminal-type (RFC-1091), the client tries to read
terminfo files and is killed by pledge. Noticed when connecting to 4.3 BSD.
ok semarie@ tb@
-rw-r--r-- | usr.bin/telnet/telnet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/telnet/telnet.c b/usr.bin/telnet/telnet.c index 8d452406ccc..26af692420d 100644 --- a/usr.bin/telnet/telnet.c +++ b/usr.bin/telnet/telnet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: telnet.c,v 1.33 2015/11/24 05:06:24 beck Exp $ */ +/* $OpenBSD: telnet.c,v 1.34 2015/12/23 13:08:24 sthen Exp $ */ /* $NetBSD: telnet.c,v 1.7 1996/02/28 21:04:15 thorpej Exp $ */ /* @@ -1841,7 +1841,7 @@ telnet(char *user) connections++; sys_telnet_init(); - if (pledge("stdio tty", NULL) == -1) { + if (pledge("stdio rpath tty", NULL) == -1) { perror("pledge"); exit(1); } |