Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
procps.4784
0047-sysctl-increase-max-supported-line-length-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0047-sysctl-increase-max-supported-line-length-of-the-con.patch of Package procps.4784
From 9c7e8b82f872e2d46ce866255ff132e0e6a0f937 Mon Sep 17 00:00:00 2001 From: Sami Farin <hvtaifwkbgefbaei@gmail.com> Date: Fri, 14 Mar 2014 00:00:00 -0600 Subject: [PATCH] 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> --- sysctl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git sysctl.c sysctl.c index 51af15d..fc224e5 100644 --- sysctl.c +++ sysctl.c @@ -483,14 +483,16 @@ static int pattern_match(const char *string, const char *pat) 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; -- 1.7.9.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor