diff options
| author | Warner Losh <imp@FreeBSD.org> | 2000-09-04 03:49:22 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2000-09-04 03:49:22 +0000 |
| commit | e9d918edb6b393ade32620c1625be0a2bd77beef (patch) | |
| tree | 96f91dc3b3eab457da5d704732e42dce50c875d4 /lib/libc/stdlib/getopt.c | |
| parent | 12b92015dd7ac9b55b3cca3348545fbfb0a7ec5d (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib/getopt.c')
| -rw-r--r-- | lib/libc/stdlib/getopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/getopt.c b/lib/libc/stdlib/getopt.c index 1b297a7982cf..17059a8ea55f 100644 --- a/lib/libc/stdlib/getopt.c +++ b/lib/libc/stdlib/getopt.c @@ -89,7 +89,7 @@ getopt(nargc, nargv, ostr) return (-1); if (!*place) ++optind; - if (opterr && *ostr != ':') + if (opterr && *ostr != ':' && optopt != BADCH) (void)fprintf(stderr, "%s: illegal option -- %c\n", __progname, optopt); return (BADCH); |
