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

REL7_2_STABLE
Bruce Momjian 24 years ago
parent 790259abd4
commit be545eaf73
  1. 2
      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;

Loading…
Cancel
Save