diff options
author | 1999-02-19 00:28:37 +0000 | |
---|---|---|
committer | 1999-02-19 00:28:37 +0000 | |
commit | bfabded1a78c0c03030935b4c35f2b287ca1dce0 (patch) | |
tree | 324c8ad79fc14a079ac7fe765eb3b18d6b5373a3 /usr.bin/file/file.c | |
parent | We are OpenBSD (diff) | |
download | wireguard-openbsd-bfabded1a78c0c03030935b4c35f2b287ca1dce0.tar.xz wireguard-openbsd-bfabded1a78c0c03030935b4c35f2b287ca1dce0.zip |
broken usage line
Diffstat (limited to 'usr.bin/file/file.c')
-rw-r--r-- | usr.bin/file/file.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/file/file.c b/usr.bin/file/file.c index 06b10deaf54..7b60497b186 100644 --- a/usr.bin/file/file.c +++ b/usr.bin/file/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.6 1998/07/10 15:05:20 mickey Exp $ */ +/* $OpenBSD: file.c,v 1.7 1999/02/19 00:28:37 deraadt Exp $ */ /* * file - find type of a file or files - main program. @@ -27,7 +27,7 @@ * 4. This notice may not be removed or altered. */ #ifndef lint -static char *moduleid = "$OpenBSD: file.c,v 1.6 1998/07/10 15:05:20 mickey Exp $"; +static char *moduleid = "$OpenBSD: file.c,v 1.7 1999/02/19 00:28:37 deraadt Exp $"; #endif /* lint */ #include <stdio.h> @@ -152,8 +152,10 @@ char *argv[]; } if (optind == argc) { - if (!didsomefiles) - err(2, USAGE, __progname); + if (!didsomefiles) { + fprintf(stderr, USAGE, __progname); + exit(2); + } } else { int i, wid, nw; for (wid = 0, i = optind; i < argc; i++) { |