The branch, master has been updated via 0f31d231db7502a6470fea4db9c3bf9aa48c1fd5 (commit) from 102cb7743545a1d86c53e7958fc56ec599ba0cd7 (commit)
- Log ----------------------------------------------------------------- commit 0f31d231db7502a6470fea4db9c3bf9aa48c1fd5 Author: Nicholas Marriott <nicholas.marri...@gmail.com> Commit: Nicholas Marriott <nicholas.marri...@gmail.com> Return error for --foo when using compat/getopt.c. --- compat/getopt.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/compat/getopt.c b/compat/getopt.c index 3a53237..38c317c 100644 --- a/compat/getopt.c +++ b/compat/getopt.c @@ -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); ----------------------------------------------------------------------- Summary of changes: compat/getopt.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) hooks/post-receive -- tmux ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs