Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 140259 Details for
Bug 204519
app-admin/cronolog: segfaults if an unknown long option is used
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
getopt_long requires that the last record in the longopts array is filled with 0 as documented in getopt(3)
cronolog-getopt-long.patch (text/plain), 1.08 KB, created by
Carlo Marcelo Arenas Belon
on 2008-01-06 08:24:57 UTC
(
hide
)
Description:
getopt_long requires that the last record in the longopts array is filled with 0 as documented in getopt(3)
Filename:
MIME Type:
Creator:
Carlo Marcelo Arenas Belon
Created:
2008-01-06 08:24:57 UTC
Size:
1.08 KB
patch
obsolete
>diff -urp cronolog-1.6.2/src/cronolog.c cronolog-1.6.2/src/cronolog.c >--- cronolog-1.6.2/src/cronolog.c 2001-05-03 09:42:48.000000000 -0700 >+++ cronolog-1.6.2/src/cronolog.c 2008-01-05 23:54:53.000000000 -0800 >@@ -139,7 +139,8 @@ struct option long_options[] = > { "delay", required_argument, NULL, 'd' }, > { "once-only", no_argument, NULL, 'o' }, > { "help", no_argument, NULL, 'h' }, >- { "version", no_argument, NULL, 'V' } >+ { "version", no_argument, NULL, 'V' }, >+ { NULL, 0, NULL, 0 } > }; > #endif > >diff -urp cronolog-1.6.2/src/cronotest.c cronolog-1.6.2/src/cronotest.c >--- cronolog-1.6.2/src/cronotest.c 2001-05-03 09:26:44.000000000 -0700 >+++ cronolog-1.6.2/src/cronotest.c 2008-01-06 00:02:24.000000000 -0800 >@@ -112,7 +112,8 @@ struct option long_options[] = > { "test-subdirs", required_argument, NULL, 'D' }, > { "help", no_argument, NULL, 'h' }, > { "version", no_argument, NULL, 'V' }, >- { "verbose", no_argument, NULL, 'v' } >+ { "verbose", no_argument, NULL, 'v' }, >+ { NULL, 0, NULL, 0 } > }; > >
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 204519
: 140259