diff options
author | 2015-10-04 04:56:50 +0000 | |
---|---|---|
committer | 2015-10-04 04:56:50 +0000 | |
commit | 03d04e932726121620f44c19cb16081b831627ef (patch) | |
tree | 1da7f5ef17e660ab773f6dc94c82af1d0b5a8f15 /usr.bin/script/script.c | |
parent | Allow sysctl read of vm.vm_psstrings, as setproctitle() uses this to (diff) | |
download | wireguard-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.c | 4 |
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; |