summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-07-23 02:59:33 +0000
committerderaadt <deraadt@openbsd.org>1997-07-23 02:59:33 +0000
commitc5e6c45640b5238c8aa06364a9a1597409f3cda5 (patch)
tree586e30e69d3517475399473c3a15a6124efba097
parentBetter handling for AppleTalk, and netatalk in particular. (diff)
downloadwireguard-openbsd-c5e6c45640b5238c8aa06364a9a1597409f3cda5.tar.xz
wireguard-openbsd-c5e6c45640b5238c8aa06364a9a1597409f3cda5.zip
arg parsing bug in compat code; kh@mogami-wire.co.jp
-rw-r--r--usr.bin/join/join.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/join/join.c b/usr.bin/join/join.c
index 88df5a5578f..5e97773b181 100644
--- a/usr.bin/join/join.c
+++ b/usr.bin/join/join.c
@@ -1,4 +1,4 @@
-/* $Id: join.c,v 1.7 1997/04/09 16:42:25 michaels Exp $
+/* $Id: join.c,v 1.8 1997/07/23 02:59:33 deraadt Exp $
/*-
* Copyright (c) 1991, 1993, 1994
@@ -45,7 +45,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "@(#)join.c 8.6 (Berkeley) 5/4/95"; */
-static char rcsid[] = "$Id: join.c,v 1.7 1997/04/09 16:42:25 michaels Exp $";
+static char rcsid[] = "$Id: join.c,v 1.8 1997/07/23 02:59:33 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -559,7 +559,7 @@ obsolete(argv)
while ((ap = *++argv) != NULL) {
/* Return if "--". */
- if (ap[0] == '-' && ap[1] == '-')
+ if (ap[0] != '-' || ap[0] == '-' && ap[1] == '-')
return;
switch (ap[1]) {
case 'a':