diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-02-19 00:28:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-02-19 00:28:38 +0000 |
commit | 1497505b0030dd7c770290035600ee277475c8e2 (patch) | |
tree | a053fbf400dc2f880cde41aa793b45346cd2b961 /usr.bin/file/file.c | |
parent | 26f77d9a32a6dd141dbf13bf32d38e6d57e2c7c1 (diff) |
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++) { |