summaryrefslogtreecommitdiff
path: root/usr.bin/fmt/fmt.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-05 06:21:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-05 06:21:16 +0000
commit16da5153bece3d877146eedefbc71cf4d7b87862 (patch)
tree5aa1e074d1f5518c002bbfc4097481bd9d131180 /usr.bin/fmt/fmt.c
parent13fafbc15020d06ebb5f4849dc1fbbb4b14e91ae (diff)
use the normal -1 check for tame failure
Diffstat (limited to 'usr.bin/fmt/fmt.c')
-rw-r--r--usr.bin/fmt/fmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fmt/fmt.c b/usr.bin/fmt/fmt.c
index a5c95991355..bb9f42b2184 100644
--- a/usr.bin/fmt/fmt.c
+++ b/usr.bin/fmt/fmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fmt.c,v 1.31 2015/10/05 06:17:05 deraadt Exp $ */
+/* $OpenBSD: fmt.c,v 1.32 2015/10/05 06:21:15 deraadt Exp $ */
/* Sensible version of fmt
*
@@ -340,7 +340,7 @@ main(int argc, char *argv[])
while (argc-- > 0)
process_named_file(*argv++);
} else {
- if (tame("stdio", NULL) != 0)
+ if (tame("stdio", NULL) == -1)
err(1, "tame");
process_stream(stdin, "standard input");
}