diff lib-src/vcdiff @ 80512:444a87e05509

2008-04-18 Steve Grubb <sgrubb@redhat.com> (tiny change) * vcdiff: Use mktemp (CVE-2008-1694).
author Romain Francoise <romain@orebokech.com>
date Fri, 18 Apr 2008 18:27:25 +0000
parents 5714ff101fd9
children fad57210c7d2
line wrap: on
line diff
--- a/lib-src/vcdiff	Sat Apr 12 13:14:56 2008 +0000
+++ b/lib-src/vcdiff	Fri Apr 18 18:27:25 2008 +0000
@@ -84,14 +84,14 @@
 	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