aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2010-01-21 23:32:55 +0800
committernaddy <naddy@FreeBSD.org>2010-01-21 23:32:55 +0800
commit02ec5859e0208217a541dca4111377a20f5626cd (patch)
tree5d4f88b54197586b7ea0d26147df2e062012b82a
parent4dd591a1131717b230fdcb22f70102b96a56e43b (diff)
downloadfreebsd-ports-gnome-02ec5859e0208217a541dca4111377a20f5626cd.tar.gz
freebsd-ports-gnome-02ec5859e0208217a541dca4111377a20f5626cd.tar.zst
freebsd-ports-gnome-02ec5859e0208217a541dca4111377a20f5626cd.zip
Fix a geline() segfault on 8.0 when using --listed-incremental.
Submitted by: Dennis Noordsij <noordsij@cs.helsinki.fi>
-rw-r--r--archivers/gtar/Makefile2
-rw-r--r--archivers/gtar/files/patch-src_incremen.c23
2 files changed, 24 insertions, 1 deletions
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