Page MenuHomeFreeBSD

D18616.diff
No OneTemporary

D18616.diff

Index: head/lib/libc/stdlib/getopt_long.c
===================================================================
--- head/lib/libc/stdlib/getopt_long.c
+++ head/lib/libc/stdlib/getopt_long.c
@@ -481,6 +481,8 @@
#endif
if (*place == '-') {
place++; /* --foo long option */
+ if (*place == '\0')
+ return (BADARG); /* malformed option */
#ifdef GNU_COMPATIBLE
dash_prefix = DD_PREFIX;
#endif

File Metadata

Mime Type
text/plain
Expires
Thu, May 14, 4:56 PM (9 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33048105
Default Alt Text
D18616.diff (407 B)

Event Timeline