From: Romain Francoise Date: Fri, 18 Apr 2008 18:27:25 +0000 (+0000) Subject: 2008-04-18 Steve Grubb (tiny change) X-Git-Tag: emacs-pretest-22.2.90~180 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e4651d75ff6d19fdf867dd508efb5fb9b656f3aa;p=emacs.git 2008-04-18 Steve Grubb (tiny change) * vcdiff: Use mktemp (CVE-2008-1694). --- diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 2ed5830d550..63cc416cad7 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,7 @@ +2008-04-18 Steve Grubb (tiny change) + + * vcdiff: Use mktemp (CVE-2008-1694). + 2008-04-10 Jason Rumney * makefile.w32-in (CLIENTRES): New variable and target. diff --git a/lib-src/vcdiff b/lib-src/vcdiff index 86b80bcdacd..cb977709db0 100755 --- a/lib-src/vcdiff +++ b/lib-src/vcdiff @@ -84,14 +84,14 @@ do case $f in s.* | */s.*) if - rev1=/tmp/geta$$ + rev1=`mktemp /tmp/geta.XXXXXXXX` get -s -p -k $sid1 "$f" > $rev1 && case $sid2 in '') workfile=`expr " /$f" : '.*/s.\(.*\)'` ;; *) - rev2=/tmp/getb$$ + rev2=`mktemp /tmp/getb.XXXXXXXX` get -s -p -k $sid2 "$f" > $rev2 workfile=$rev2 esac