summaryrefslogtreecommitdiffstats
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-04 04:56:50 +0000
committerderaadt <deraadt@openbsd.org>2015-10-04 04:56:50 +0000
commit03d04e932726121620f44c19cb16081b831627ef (patch)
tree1da7f5ef17e660ab773f6dc94c82af1d0b5a8f15 /usr.bin/script/script.c
parentAllow sysctl read of vm.vm_psstrings, as setproctitle() uses this to (diff)
downloadwireguard-openbsd-03d04e932726121620f44c19cb16081b831627ef.tar.xz
wireguard-openbsd-03d04e932726121620f44c19cb16081b831627ef.zip
Repair tame() error check to be == -1
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 10d57b84548..dd34c060dd7 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: script.c,v 1.28 2015/10/03 02:14:51 deraadt Exp $ */
+/* $OpenBSD: script.c,v 1.29 2015/10/04 04:56:50 deraadt Exp $ */
/* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */
/*
@@ -251,7 +251,7 @@ dooutput(void)
sa.sa_handler = SIG_IGN;
(void)sigaction(SIGCHLD, &sa, NULL);
- if (tame("stdio", NULL) != 0)
+ if (tame("stdio", NULL) == -1)
err(1, "tame");
value.it_interval.tv_sec = 30;