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 869306 Details for
Bug 1071530
silly line length limit in sysctl
[?]
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]
procps-ng-3.3.9-sysctl-linelen.patch
procps-ng-3.3.9-sysctl-linelen.patch (text/plain), 803 bytes, created by
Sami Farin
on 2014-03-01 11:02:52 UTC
(
hide
)
Description:
procps-ng-3.3.9-sysctl-linelen.patch
Filename:
MIME Type:
Creator:
Sami Farin
Created:
2014-03-01 11:02:52 UTC
Size:
803 bytes
patch
obsolete
>--- procps-ng-3.3.9/sysctl.c.bak 2013-10-11 02:04:36.000000000 +0300 >+++ procps-ng-3.3.9/sysctl.c 2014-03-01 12:47:47.629400962 +0200 >@@ -483,14 +483,16 @@ static int pattern_match(const char *str > return (1); > } > >+#define LINELEN 4096 >+ > /* > * Preload the sysctl's from the conf file. We parse the file and then > * reform it (strip out whitespace). > */ > static int Preload(const char *restrict const filename) > { >- char oneline[256]; >- char buffer[256]; >+ char oneline[LINELEN]; >+ char buffer[LINELEN]; > FILE *fp; > char *t; > int n = 0; >@@ -545,7 +547,7 @@ static int Preload(const char *restrict > value++; > > /* should NameOnly affect this? */ >- sprintf(buffer, "%s=%s", name, value); >+ snprintf(buffer, sizeof(buffer), "%s=%s", name, value); > rc |= WriteSetting(buffer); > } >
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 1071530
: 869306 |
873722