Commit db054685 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/libc0.9.32: workaround for getprotobyname/getservbyname

we just increase bufsize for now.

fixes #433

(cherry picked from commit ef54f833)
parent 37cc8212
......@@ -3,7 +3,7 @@ _abiver=0.9.32
pkgname=libc$_abiver
_gitver=1009151331
pkgver=${_abiver}_alpha0_git$_gitver
pkgrel=1
pkgrel=2
pkgdesc="C library for developing embedded Linux systems"
url=http://uclibc.org
license="LGPL-2"
......@@ -27,6 +27,7 @@ source="http://build.alpinelinux.org:8010/distfiles/$_snapfile
0002-getservice-getservent_r-must-return-ERANGE-when-buff.patch
0003-config-parser-always-initialize-line-pointer.patch
bufsize.patch
uclibcconfig.x86
uclibcconfig.i486
"
......@@ -122,5 +123,6 @@ md5sums="966c830f294a8ab5069cc03a61e1b2ed libc0.9.32-0.9.32_alpha0_git100915133
ba6e0370d1fc19e5903696de412507ef 0001-config-parser-do-not-assume-that-realloc-return-same.patch
19d923997f9625ce6f16d8128bbcba65 0002-getservice-getservent_r-must-return-ERANGE-when-buff.patch
99b817778f4ef3a1b194740ea08990b4 0003-config-parser-always-initialize-line-pointer.patch
cf97d904c42c5fd165650472100b18a7 bufsize.patch
cffecb42bdec2da7cac718fa66cacbbe uclibcconfig.x86
cffecb42bdec2da7cac718fa66cacbbe uclibcconfig.i486"
diff --git a/libc/inet/getproto.c b/libc/inet/getproto.c
index bcf507b..9858900 100644
--- a/libc/inet/getproto.c
+++ b/libc/inet/getproto.c
@@ -28,7 +28,7 @@ aliases: case sensitive optional space or tab separated list of other names
__UCLIBC_MUTEX_STATIC(mylock, PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP);
#define MAXALIASES 35
-#define BUFSZ (80) /* one line */
+#define BUFSZ (256) /* one line */
#define SBUFSIZE (BUFSZ + 1 + (sizeof(char *) * MAXALIASES))
static parser_t *protop = NULL;
diff --git a/libc/inet/getservice.c b/libc/inet/getservice.c
index c38ff80..dbbc19c 100644
--- a/libc/inet/getservice.c
+++ b/libc/inet/getservice.c
@@ -29,7 +29,7 @@ aliases: case sensitive optional space or tab separated list of other names
__UCLIBC_MUTEX_STATIC(mylock, PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP);
#define MAXALIASES 35
-#define BUFSZ (80) /* one line */
+#define BUFSZ (256) /* one line */
#define SBUFSIZE (BUFSZ + 1 + (sizeof(char *) * MAXALIASES))
static parser_t *servp = NULL;
--- ./libc/inet/getproto.c.orig
+++ ./libc/inet/getproto.c
@@ -28,7 +28,7 @@
__UCLIBC_MUTEX_STATIC(mylock, PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP);
#define MAXALIASES 35
-#define BUFSZ (80) /* one line */
+#define BUFSZ (180) /* one line */
#define SBUFSIZE (BUFSZ + 1 + (sizeof(char *) * MAXALIASES))
static parser_t *protop = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment