summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRomain Francoise <romain@orebokech.com>2008-04-18 18:27:25 +0000
committerRomain Francoise <romain@orebokech.com>2008-04-18 18:27:25 +0000
commite4651d75ff6d19fdf867dd508efb5fb9b656f3aa (patch)
treed78e4ba7c2bf120b198c9fcfccf3625f9900235a /lib-src
parentbcb96719b37029024876fca1f65eab69d32aa6d8 (diff)
downloademacs-e4651d75ff6d19fdf867dd508efb5fb9b656f3aa.tar.gz
2008-04-18 Steve Grubb <sgrubb@redhat.com> (tiny change)
* vcdiff: Use mktemp (CVE-2008-1694).
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog4
-rwxr-xr-xlib-src/vcdiff4
2 files changed, 6 insertions, 2 deletions
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 <sgrubb@redhat.com> (tiny change)
+
+ * vcdiff: Use mktemp (CVE-2008-1694).
+
2008-04-10 Jason Rumney <jasonr@gnu.org>
* 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