mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-18 00:45:02 +00:00
Return error for --foo when using compat/getopt.c.
This commit is contained in:
parent
102cb77435
commit
0f31d231db
1 changed files with 2 additions and 0 deletions
|
|
@ -67,6 +67,8 @@ BSDgetopt(int nargc, char *const *nargv, const char *ostr)
|
|||
return (-1);
|
||||
}
|
||||
if (place[1] && *++place == '-') { /* found "--" */
|
||||
if (place[1])
|
||||
return (BADCH);
|
||||
++BSDoptind;
|
||||
place = EMSG;
|
||||
return (-1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue