Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit be545ea

Browse files
committed
Fix for "--" options. Allow --xxx as a valid flag, from NetBSD fix.
1 parent 790259a commit be545ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/getopt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const char *ostr;
7171
place = EMSG;
7272
return -1;
7373
}
74-
if (place[1] && *++place == '-')
74+
if (place[1] && *++place == '-' && place[1] == '\0')
7575
{ /* found "--" */
7676
++optind;
7777
place = EMSG;

0 commit comments

Comments
 (0)