summaryrefslogtreecommitdiffstats
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authorsemarie <semarie@openbsd.org>2015-10-20 14:55:21 +0000
committersemarie <semarie@openbsd.org>2015-10-20 14:55:21 +0000
commitc6c21631c9bd85e4829fee318d0cfbb0ccc10270 (patch)
treeae5dc1292fefcabfdc9b1b06663a62161ca9fea9 /usr.bin/script/script.c
parentThe table could change when retrying so don't save it at start of (diff)
downloadwireguard-openbsd-c6c21631c9bd85e4829fee318d0cfbb0ccc10270.tar.xz
wireguard-openbsd-c6c21631c9bd85e4829fee318d0cfbb0ccc10270.zip
add "proc" to pledge for script(1)
it needs to "forward" SIGWINCH to subprocesses. ok deraadt@
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r--usr.bin/script/script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index b05e5ac4ea3..57359ed2116 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: script.c,v 1.31 2015/10/09 01:37:08 deraadt Exp $ */
+/* $OpenBSD: script.c,v 1.32 2015/10/20 14:55:21 semarie Exp $ */
/* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */
/*
@@ -165,7 +165,7 @@ main(int argc, char *argv[])
sa.sa_handler = finish;
(void)sigaction(SIGCHLD, &sa, NULL);
- if (pledge("stdio tty", NULL) == -1)
+ if (pledge("stdio proc tty", NULL) == -1)
err(1, "pledge");
(void)fclose(fscript);
@@ -251,7 +251,7 @@ dooutput(void)
sa.sa_handler = SIG_IGN;
(void)sigaction(SIGCHLD, &sa, NULL);
- if (pledge("stdio", NULL) == -1)
+ if (pledge("stdio proc", NULL) == -1)
err(1, "pledge");
value.it_interval.tv_sec = 30;