Fix for "--" options. Allow --xxx as a valid flag, from NetBSD fix.

This commit is contained in:
Bruce Momjian 2001-11-26 19:30:58 +00:00
parent 790259abd4
commit be545eaf73
1 changed files with 1 additions and 1 deletions

View File

@ -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;