mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Return error for --foo when using compat/getopt.c.
This commit is contained in:
		@@ -67,6 +67,8 @@ BSDgetopt(int nargc, char *const *nargv, const char *ostr)
 | 
				
			|||||||
			return (-1);
 | 
								return (-1);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if (place[1] && *++place == '-') {	/* found "--" */
 | 
							if (place[1] && *++place == '-') {	/* found "--" */
 | 
				
			||||||
 | 
								if (place[1])
 | 
				
			||||||
 | 
									return (BADCH);
 | 
				
			||||||
			++BSDoptind;
 | 
								++BSDoptind;
 | 
				
			||||||
			place = EMSG;
 | 
								place = EMSG;
 | 
				
			||||||
			return (-1);
 | 
								return (-1);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user