Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 151088 Details for
Bug 234262
intermittent parse failure due to 64-bit tm->when time field in /proc/net/tcp*
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
simple-minded workaround for parse failure
authd-1.4.3-jiffies64.patch (text/plain), 1.30 KB, created by
Bill Rugolsky, Jr.
on 2007-03-27 22:46:21 UTC
(
hide
)
Description:
simple-minded workaround for parse failure
Filename:
MIME Type:
Creator:
Bill Rugolsky, Jr.
Created:
2007-03-27 22:46:21 UTC
Size:
1.30 KB
patch
obsolete
>--- authd-1.4.3/authd.c.jiffies64 2007-03-27 16:45:50.000000000 -0400 >+++ authd-1.4.3/authd.c 2007-03-27 17:47:33.000000000 -0400 >@@ -347,6 +347,21 @@ static void create_opt(int argc, char *a > > static const char *const DELIM = ",: \t\r\n\v\f"; > >+static unsigned long long get_tok_ullong(char *s, unsigned base) { >+ unsigned long ull = ULLONG_MAX; >+ >+ assert(base <= 36); >+ if ((s = strtok(s, DELIM)) != NULL) { >+ char *endptr; >+ >+ ull = strtoull(s, &endptr, (int) base); >+ if (is_bad_strto(s, endptr)) >+ errno = EINVAL; >+ } >+ else errno = EINVAL; >+ return ull; >+} >+ > static unsigned long get_tok_uint(char *s, unsigned base) { > unsigned long ul = ULONG_MAX; > >@@ -654,7 +669,7 @@ static bool get_info(reply_t *out, reque > (void) get_tok_uint(NULL, 16); // tx_queue > (void) get_tok_uint(NULL, 16); // rx_queue > (void) get_tok_uint(NULL, 16); // tr (boolean) >- (void) get_tok_uint(NULL, 16); // tm->when (unit: jiffies) >+ (void) get_tok_ullong(NULL, 16); // tm->when (unit: jiffies) > strtok(NULL, DELIM); // retrnsmt > uid = get_tok_uint(NULL, 10); // uid (base 10 uint) > strtok(NULL, DELIM); // timeout
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 234262
: 151088