summary refs log tree commit diff
path: root/posix/getopt.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2010-04-07 17:28:36 -0700
committerUlrich Drepper <drepper@redhat.com>2010-04-07 17:28:36 -0700
commitcf0b68196c837ad591f0e7fc0f8e8a0f690b847c (patch)
tree7e3de9e1dffc3474bceeab763b0867d2c8c89191 /posix/getopt.c
parentaa7f642769abcfbce658aeaaffdc9fb4790cd905 (diff)
downloadglibc-cf0b68196c837ad591f0e7fc0f8e8a0f690b847c.tar.gz
glibc-cf0b68196c837ad591f0e7fc0f8e8a0f690b847c.tar.xz
glibc-cf0b68196c837ad591f0e7fc0f8e8a0f690b847c.zip
getopt mistakenly allows '-;' as short option
Diffstat (limited to 'posix/getopt.c')
-rw-r--r--posix/getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/getopt.c b/posix/getopt.c
index 01c1071ecb..b778047cd9 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)
 	  {