From 02ec5859e0208217a541dca4111377a20f5626cd Mon Sep 17 00:00:00 2001 From: naddy Date: Thu, 21 Jan 2010 15:32:55 +0000 Subject: Fix a geline() segfault on 8.0 when using --listed-incremental. Submitted by: Dennis Noordsij --- archivers/gtar/Makefile | 2 +- archivers/gtar/files/patch-src_incremen.c | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 archivers/gtar/files/patch-src_incremen.c diff --git a/archivers/gtar/Makefile b/archivers/gtar/Makefile index b52650821384..fedcea4be192 100644 --- a/archivers/gtar/Makefile +++ b/archivers/gtar/Makefile @@ -7,7 +7,7 @@ PORTNAME= tar PORTVERSION= 1.22 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= archivers sysutils MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/archivers/gtar/files/patch-src_incremen.c b/archivers/gtar/files/patch-src_incremen.c new file mode 100644 index 000000000000..57a7af62940e --- /dev/null +++ b/archivers/gtar/files/patch-src_incremen.c @@ -0,0 +1,23 @@ + +$FreeBSD$ + +--- src/incremen.c.orig ++++ src/incremen.c +@@ -870,7 +870,7 @@ + time_t sec; + long int nsec; + char *buf = 0; +- size_t bufsize; ++ size_t bufsize = 0; + char *ebuf; + long lineno = 1; + +@@ -1230,7 +1230,7 @@ + { + int fd; + char *buf = 0; +- size_t bufsize; ++ size_t bufsize = 0; + + /* Open the file for both read and write. That way, we can write + it later without having to reopen it, and don't have to worry if -- cgit