From e3f1ae5edbe93df49723a93fe383d3b3d2282221 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 23 Jul 1997 02:59:34 +0000 Subject: arg parsing bug in compat code; kh@mogami-wire.co.jp --- usr.bin/join/join.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/join/join.c') 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 @@ -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': -- cgit v1.2.3