diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-05 06:21:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-05 06:21:16 +0000 |
commit | 16da5153bece3d877146eedefbc71cf4d7b87862 (patch) | |
tree | 5aa1e074d1f5518c002bbfc4097481bd9d131180 /usr.bin/fmt/fmt.c | |
parent | 13fafbc15020d06ebb5f4849dc1fbbb4b14e91ae (diff) |
use the normal -1 check for tame failure
Diffstat (limited to 'usr.bin/fmt/fmt.c')
-rw-r--r-- | usr.bin/fmt/fmt.c | 4 |
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"); } |