diff options
author | Bruce Momjian | 2001-11-26 19:30:58 +0000 |
---|---|---|
committer | Bruce Momjian | 2001-11-26 19:30:58 +0000 |
commit | be545eaf73bc0ac2d6b2f311f8c333e76a348181 (patch) | |
tree | 857011a46d16bd362e65f6e708c87b0bc04118c3 | |
parent | 790259abd49893f24b68330aa6879d9731300df9 (diff) |
Fix for "--" options. Allow --xxx as a valid flag, from NetBSD fix.
-rw-r--r-- | src/utils/getopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/getopt.c b/src/utils/getopt.c index 442631347c5..bbe81c16990 100644 --- a/src/utils/getopt.c +++ b/src/utils/getopt.c @@ -71,7 +71,7 @@ const char *ostr; place = EMSG; return -1; } - if (place[1] && *++place == '-') + if (place[1] && *++place == '-' && place[1] == '\0') { /* found "--" */ ++optind; place = EMSG; |