diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 2000-09-20 04:43:13 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 2000-09-20 04:43:13 +0000 |
| commit | 6c05034cbe3599f937d2eb692f2bb7358e745052 (patch) | |
| tree | 8cb1c355b25faf8d862dd80b287817641206f347 /lib/libc/stdlib/getopt.c | |
| parent | ace4f3086617e9b6efcfb61e97491ec16cfbb8cd (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); |
