bb753745ce
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
26 lines
562 B
C
26 lines
562 B
C
--- 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;
|
|
}
|
|
|
|
|