projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa7f642
)
getopt mistakenly allows '-;' as short option
author
Eric Blake
<ebb9@byu.net>
Thu, 8 Apr 2010 00:28:36 +0000
(17:28 -0700)
committer
Ulrich Drepper
<drepper@redhat.com>
Thu, 8 Apr 2010 00:28:36 +0000
(17:28 -0700)
ChangeLog
patch
|
blob
|
history
posix/getopt.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index
e1de2df
..
b9e162f
100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,4
+1,10
@@
-2009-12-02 Eric Blake <ebb9@byu.net>
+2009-12-01 Eric Blake <ebb9@byu.net>
+
+ [BZ #11040]
+ * posix/getopt.c (_getopt_internal_r): Reject '-;' as short
+ option, since it conflicts with "W;" optstring extension.
+
+2009-12-02 Eric Blake <ebb9@byu.net>
[BZ #11041]
* posix/getopt.c (_getopt_internal_r): Handle '-Wfoo' identically
diff --git
a/posix/getopt.c
b/posix/getopt.c
index
01c1071
..
b778047
100644
(file)
--- a/
posix/getopt.c
+++ b/
posix/getopt.c
@@
-789,7
+789,7
@@
_getopt_internal_r (int argc, char *const *argv, const char *optstring,
if (*d->__nextchar == '\0')
++d->optind;
- if (temp == NULL || c == ':')
+ if (temp == NULL || c == ':'
|| c == ';'
)
{
if (print_errors)
{