summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-07-11 06:13:18 +0000
committercharnier <charnier@FreeBSD.org>1997-07-11 06:13:18 +0000
commit4320b928687c8a38af1fa22b6545e894f95172d2 (patch)
tree44514f672e4b3bfcddc5f0b6f2839a92d6a0a470
parentaad076cc731d8936b4bac82a9fc315d4eac56ebf (diff)
downloadFreeBSD-src-4320b928687c8a38af1fa22b6545e894f95172d2.zip
FreeBSD-src-4320b928687c8a38af1fa22b6545e894f95172d2.tar.gz
Setting eval to 1 after calling warn was the original behaviour.
-rw-r--r--usr.bin/head/head.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/head/head.c b/usr.bin/head/head.c
index 4fb2b0f..6326605 100644
--- a/usr.bin/head/head.c
+++ b/usr.bin/head/head.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)head.c 8.2 (Berkeley) 5/4/95";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: head.c,v 1.7 1997/07/10 06:46:13 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -105,6 +105,7 @@ main(argc, argv)
for (first = 1; *argv; ++argv) {
if ((fp = fopen(*argv, "r")) == NULL) {
warn("%s", *argv);
+ eval = 1;
continue;
}
if (argc > 1) {
OpenPOWER on IntegriCloud