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 873722 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]
signed
procps-ng-3.3.9-sysctl-linelen-signed.patch (text/plain), 880 bytes, created by
Sami Farin
on 2014-03-12 18:55:18 UTC
(
hide
)
Description:
signed
Filename:
MIME Type:
Creator:
Sami Farin
Created:
2014-03-12 18:55:18 UTC
Size:
880 bytes
patch
obsolete
>sysctl: increase max supported line length of the conf file > >I ran into this limit with net.ipv4.ip_local_reserved_ports , >sysctl complained about the line after the long line, further >slowing down my error hunting. > >Due to fgets usage, increase buffer size to 4096 chars with >minimum amount of code changes. > >Signed-off-by: Sami Farin <hvtaifwkbgefbaei@gmail.com> > >--- a/sysctl.c 2013-10-11 02:04:36.000000000 +0300 >+++ b/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;
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