diff options
Diffstat (limited to 'usr.bin/fmt')
-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"); } |