diff options
author | 1998-01-22 17:41:09 +0000 | |
---|---|---|
committer | 1998-01-22 17:41:09 +0000 | |
commit | 7b18e9d8972c89662ae48126175caf948ff2fda7 (patch) | |
tree | 782c4749735deebfec49decedbc9ac5855968fb7 | |
parent | added more pioctl calls. (for future use in AFS-client) (diff) | |
download | wireguard-openbsd-7b18e9d8972c89662ae48126175caf948ff2fda7.tar.xz wireguard-openbsd-7b18e9d8972c89662ae48126175caf948ff2fda7.zip |
expand(1) cannot treat argument correctly; shigio@wafu.netgate.net
-rw-r--r-- | usr.bin/expand/expand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/expand/expand.c b/usr.bin/expand/expand.c index 52b207c063d..1e60c6fbefb 100644 --- a/usr.bin/expand/expand.c +++ b/usr.bin/expand/expand.c @@ -1,4 +1,4 @@ -/* $OpenBSD: expand.c,v 1.2 1996/06/26 05:32:48 deraadt Exp $ */ +/* $OpenBSD: expand.c,v 1.3 1998/01/22 17:41:09 deraadt Exp $ */ /* $NetBSD: expand.c,v 1.5 1995/09/02 06:19:46 jtc Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)expand.c 8.1 (Berkeley) 6/9/93"; #endif -static char rcsid[] = "$OpenBSD: expand.c,v 1.2 1996/06/26 05:32:48 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: expand.c,v 1.3 1998/01/22 17:41:09 deraadt Exp $"; #endif /* not lint */ #include <stdio.h> @@ -70,7 +70,7 @@ main(argc, argv) register int n; /* handle obsolete syntax */ - while (argc > 1 && argv[1][0] && isdigit(argv[1][1])) { + while (argc > 1 && argv[1][0] == '-' && isdigit(argv[1][1])) { getstops(&argv[1][1]); argc--; argv++; } |