Commit be545eaf authored by Bruce Momjian's avatar Bruce Momjian

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

parent 790259ab
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment