summaryrefslogtreecommitdiffstats
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-07 05:08:27 +0000
committerderaadt <deraadt@openbsd.org>2015-10-07 05:08:27 +0000
commit2c634e5ce4946fc1c0a8ff38cefa4bd085385e5e (patch)
treef8967578f45f85abcd9e564556f746da369b098c /usr.bin/script/script.c
parenttame "stdio getpw rpath wpath tty". "tty" allows this to use (diff)
downloadwireguard-openbsd-2c634e5ce4946fc1c0a8ff38cefa4bd085385e5e.tar.xz
wireguard-openbsd-2c634e5ce4946fc1c0a8ff38cefa4bd085385e5e.zip
move from tame "ioctl" to tame "tty", which provides a better fit for
this program which uses tcgetattr(). the tcsetattr() calls are outside the tame regions.
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r--usr.bin/script/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index dd34c060dd7..1bb97d72809 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: script.c,v 1.29 2015/10/04 04:56:50 deraadt Exp $ */
+/* $OpenBSD: script.c,v 1.30 2015/10/07 05:08:27 deraadt 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 (tame("stdio ioctl", NULL) == -1)
+ if (tame("stdio tty", NULL) == -1)
err(1, "tame");
(void)fclose(fscript);