diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2015-10-20 14:55:22 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2015-10-20 14:55:22 +0000 |
commit | 9abdba4c6039220b8fb5f759d90a61a7e7e8c427 (patch) | |
tree | 907962eb518468321fe92861de99039c83dba555 /usr.bin | |
parent | 6076455115186a5c31af7fc6e6a68b41780d05d2 (diff) |
add "proc" to pledge for script(1)
it needs to "forward" SIGWINCH to subprocesses.
ok deraadt@
Diffstat (limited to 'usr.bin')
-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; |