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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy