This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.11-338-gcf0b681


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  cf0b68196c837ad591f0e7fc0f8e8a0f690b847c (commit)
      from  aa7f642769abcfbce658aeaaffdc9fb4790cd905 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=cf0b68196c837ad591f0e7fc0f8e8a0f690b847c

commit cf0b68196c837ad591f0e7fc0f8e8a0f690b847c
Author: Eric Blake <ebb9@byu.net>
Date:   Wed Apr 7 17:28:36 2010 -0700

    getopt mistakenly allows '-;' as short option

diff --git a/ChangeLog b/ChangeLog
index e1de2df..b9e162f 100644
--- 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
--- 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)
 	  {

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    8 +++++++-
 posix/getopt.c |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]