From bb753745ce120a725a5dd81535069c6b75d927ab Mon Sep 17 00:00:00 2001 From: Mario Sergio Fujikawa Ferreira Date: Mon, 17 Oct 2005 23:56:12 +0000 Subject: o Try at a fix for http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-301 [1] [2] o Bump PORTREVISION Obtained from: Debian [1] http://www.no-name-yet.com/patches/texinfo.CAN-2005-3011.diff, Gentoo [2] http://www.gentoo.org/cgi-bin/viewcvs.cgi/sys-apps/texinfo/files/texinfo-4.8-tempfile.patch?rev=1.2&content-type=text/vnd.viewcvs-markup --- print/texinfo/Makefile | 2 +- print/texinfo/files/patch-util__texindex.c | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 print/texinfo/files/patch-util__texindex.c (limited to 'print/texinfo') diff --git a/print/texinfo/Makefile b/print/texinfo/Makefile index c99f87d5f66a..ce4b75a02ce3 100644 --- a/print/texinfo/Makefile +++ b/print/texinfo/Makefile @@ -7,7 +7,7 @@ PORTNAME= texinfo PORTVERSION= 4.8 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/print/texinfo/files/patch-util__texindex.c b/print/texinfo/files/patch-util__texindex.c new file mode 100644 index 000000000000..8e8d076f57a8 --- /dev/null +++ b/print/texinfo/files/patch-util__texindex.c @@ -0,0 +1,26 @@ +--- util/texindex.c.orig Mon Oct 17 21:41:08 2005 ++++ util/texindex.c Mon Oct 17 21:41:52 2005 +@@ -390,7 +390,9 @@ + maketempname (int count) + { + static char *tempbase = NULL; ++ char *tempname; + char tempsuffix[10]; ++ int fd; + + if (!tempbase) + { +@@ -403,7 +405,12 @@ + } + + sprintf (tempsuffix, ".%d", count); +- return concat (tempbase, tempsuffix); ++ tempname = concat (tempbase, tempsuffix); ++ fd = open (tempname, O_CREAT|O_EXCL|O_WRONLY, 0600); ++ if (fd == -1) ++ pfatal_with_name (tempname); ++ close (fd); ++ return tempname; + } + + -- cgit v1.2.3