diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-25 05:31:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-25 05:31:11 +0000 |
commit | b2aa7be5b0ff88283687185f132ad5ad2631cce4 (patch) | |
tree | ca277af1aa7ef87432e77387e04084ef120bd38d | |
parent | 2e4c5d93fc9e4507b2b7e3c45c5b172304e60dc8 (diff) |
require compat opts start with -; bug from kh@mogami-wire.co.jp; fix from freebsd
-rw-r--r-- | usr.bin/join/join.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 <sys/param.h> @@ -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': /* |