FreeBSD Bugzilla – Attachment 11846 Details for
Bug 23148
getopt(3) works non-intuitively?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 662 bytes, created by
anand
on 2000-11-28 02:00:05 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
anand
Created:
2000-11-28 02:00:05 UTC
Size:
662 bytes
patch
obsolete
>--- getopt.c.orig Mon Nov 27 15:27:57 2000 >+++ getopt.c Mon Nov 27 16:29:31 2000 >@@ -73,7 +73,7 @@ > place = EMSG; > return (-1); > } >- if (place[1] && *++place == '-') { /* found "--" */ >+ if (place[1] && *++place == '-' && !place[1]) { /* found "--" */ > ++optind; > place = EMSG; > return (-1); >@@ -81,12 +81,6 @@ > } /* option letter okay? */ > if ((optopt = (int)*place++) == (int)':' || > !(oli = strchr(ostr, optopt))) { >- /* >- * if the user didn't specify '-' as an option, >- * assume it means -1. >- */ >- if (optopt == (int)'-') >- return (-1); > if (!*place) > ++optind; > if (opterr && *ostr != ':' && optopt != BADCH)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 23148
: 11846