summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/file/file.c10
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++) {