summaryrefslogtreecommitdiff
path: root/usr.bin/talk/talk.c
diff options
context:
space:
mode:
authormestre <mestre@cvs.openbsd.org>2016-03-08 20:07:47 +0000
committermestre <mestre@cvs.openbsd.org>2016-03-08 20:07:47 +0000
commit9c79e8a9809abcbf84c518a776d6e6ea90ed39be (patch)
tree1d1d028c0a1904a455cc992c00e07e646e5fc552 /usr.bin/talk/talk.c
parent0ce143647b576ad96e4c490f5e39e34c4c45dd44 (diff)
Actually enforce what was done on rev 1.11:
if one of the parties is remote it needs to pledge for inet
Diffstat (limited to 'usr.bin/talk/talk.c')
-rw-r--r--usr.bin/talk/talk.c4
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");
}