diff options
author | 2016-03-08 20:07:46 +0000 | |
---|---|---|
committer | 2016-03-08 20:07:46 +0000 | |
commit | 734909455d9253e8b5b07aea0f2b1944bbb3cb23 (patch) | |
tree | 52515abf560720cb55a7028db8277f1927e66b26 | |
parent | - ranf() and franf() are prototyped on trek.h but ranf.c doesn't include it so (diff) | |
download | wireguard-openbsd-734909455d9253e8b5b07aea0f2b1944bbb3cb23.tar.xz wireguard-openbsd-734909455d9253e8b5b07aea0f2b1944bbb3cb23.zip |
Actually enforce what was done on rev 1.11:
if one of the parties is remote it needs to pledge for inet
-rw-r--r-- | usr.bin/talk/talk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/talk/talk.c b/usr.bin/talk/talk.c index 0c9e4f362b3..6ad8a011cc2 100644 --- a/usr.bin/talk/talk.c +++ b/usr.bin/talk/talk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: talk.c,v 1.11 2016/02/05 10:18:01 mestre Exp $ */ +/* $OpenBSD: talk.c,v 1.12 2016/03/08 20:07:46 mestre Exp $ */ /* $NetBSD: talk.c,v 1.3 1994/12/09 02:14:25 jtc Exp $ */ /* @@ -71,7 +71,7 @@ main(int argc, char *argv[]) if (pledge("stdio tty", NULL) == -1) err(1, "pledge"); } else { - if (pledge("stdio tty", NULL) == -1) + if (pledge("stdio inet tty", NULL) == -1) err(1, "pledge"); } |