emacs/emacs-22.3-security_mktemp.patch

13 lines
425 B
Diff
Raw Normal View History

diff -Nru emacs-22.3.orig/lib-src/rcs2log emacs-22.3/lib-src/rcs2log
--- emacs-22.3.orig/lib-src/rcs2log 2008-01-07 09:39:42.000000000 +0100
+++ emacs-22.3/lib-src/rcs2log 2008-09-08 01:48:39.000000000 +0200
@@ -205,7 +205,7 @@
m[9]="Oct"; m[10]="Nov"; m[11]="Dec"
'
-logdir=$TMPDIR/rcs2log$$
+logdir=`mktemp -d /tmp/rcs2log.XXXXXX` || exit 1
llogout=$logdir/l
trap exit 1 2 13 15
trap "rm -fr $logdir 2>/dev/null" 0