mirror of https://github.com/postgres/postgres
Fix for "--" options. Allow --xxx as a valid flag, from NetBSD fix.
This commit is contained in:
parent
790259abd4
commit
be545eaf73
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue