From b2aa7be5b0ff88283687185f132ad5ad2631cce4 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 25 Aug 1997 05:31:11 +0000 Subject: require compat opts start with -; bug from kh@mogami-wire.co.jp; fix from freebsd --- usr.bin/join/join.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/join/join.c b/usr.bin/join/join.c index 0ca203fd66f..7e467e1dc78 100644 --- a/usr.bin/join/join.c +++ b/usr.bin/join/join.c @@ -1,4 +1,4 @@ -/* $Id: join.c,v 1.9 1997/07/24 01:35:30 deraadt Exp $ +/* $Id: join.c,v 1.10 1997/08/25 05:31:10 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.9 1997/07/24 01:35:30 deraadt Exp $"; +static char rcsid[] = "$Id: join.c,v 1.10 1997/08/25 05:31:10 deraadt Exp $"; #endif /* not lint */ #include @@ -561,6 +561,9 @@ obsolete(argv) /* Return if "--". */ if (ap[0] == '-' && ap[1] == '-') return; + /* skip if not an option */ + if (ap[0] != '-') + continue; switch (ap[1]) { case 'a': /* -- cgit v1.2.3