Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/join join.c: print usage after warning "illegal opti...
details: https://anonhg.NetBSD.org/src/rev/2f307d6c902b
branches: trunk
changeset: 953720:2f307d6c902b
user: cheusov <cheusov%NetBSD.org@localhost>
date: Thu Mar 18 19:47:41 2021 +0000
description:
join.c: print usage after warning "illegal option..." as it was originally intended
diffstat:
usr.bin/join/join.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 29dd0f5dcb69 -r 2f307d6c902b usr.bin/join/join.c
--- a/usr.bin/join/join.c Thu Mar 18 19:41:54 2021 +0000
+++ b/usr.bin/join/join.c Thu Mar 18 19:47:41 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: join.c,v 1.32 2021/03/18 19:41:54 cheusov Exp $ */
+/* $NetBSD: join.c,v 1.33 2021/03/18 19:47:41 cheusov Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -47,7 +47,7 @@
#if 0
static char sccsid[] = "from: @(#)join.c 5.1 (Berkeley) 11/18/91";
#else
-__RCSID("$NetBSD: join.c,v 1.32 2021/03/18 19:41:54 cheusov Exp $");
+__RCSID("$NetBSD: join.c,v 1.33 2021/03/18 19:47:41 cheusov Exp $");
#endif
#endif /* not lint */
@@ -589,8 +589,9 @@
case '\0':
break;
default:
-jbad: errx(1, "illegal option -- %s", ap);
+jbad: warnx("illegal option -- %s", ap);
usage();
+ exit(1);
}
break;
case 'o':
Home |
Main Index |
Thread Index |
Old Index