diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-23 02:59:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-23 02:59:34 +0000 |
commit | e3f1ae5edbe93df49723a93fe383d3b3d2282221 (patch) | |
tree | 3fd763e2ea13a6066fc80d0e7d505e0f1861d365 /usr.bin/join | |
parent | 47bc1a39c8cd804b6ceb8356dcfbd54e55d5f65d (diff) |
arg parsing bug in compat code; kh@mogami-wire.co.jp
Diffstat (limited to 'usr.bin/join')
-rw-r--r-- | usr.bin/join/join.c | 6 |
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': |