提交 be545eaf 编写于 作者: B Bruce Momjian

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

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册