diff options
author | 2015-10-20 14:55:21 +0000 | |
---|---|---|
committer | 2015-10-20 14:55:21 +0000 | |
commit | c6c21631c9bd85e4829fee318d0cfbb0ccc10270 (patch) | |
tree | ae5dc1292fefcabfdc9b1b06663a62161ca9fea9 /usr.bin/script/script.c | |
parent | The table could change when retrying so don't save it at start of (diff) | |
download | wireguard-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.c | 6 |
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; |