rpms/xastir/F-8 xastir-1.9.2-tmpdir.patch,NONE,1.1
Lucian Langa
lucilanga at fedoraproject.org
Thu Aug 28 12:39:01 UTC 2008
Author: lucilanga
Update of /cvs/pkgs/rpms/xastir/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10679
Added Files:
xastir-1.9.2-tmpdir.patch
Log Message:
fix insecure auxiliary /tmp file usage bug #460429
xastir-1.9.2-tmpdir.patch:
--- NEW FILE xastir-1.9.2-tmpdir.patch ---
--- xastir-1.9.2/scripts/get-maptools.sh 2007-01-03 21:40:49.000000000 +0200
+++ xastir-1.9.2-mod/scripts/get-maptools.sh 2008-08-28 15:26:04.000000000 +0300
@@ -171,8 +171,9 @@
cp $LDCONF_FILE /tmp/ldconfig.tmp
$SUDO cp $LDCONF_FILE $LDCONF_FILE.orig.$$
fi
- printf "/usr/local/lib\n" >> /tmp/ldconf.tmp
- $SUDO cp /tmp/ldconf.tmp $LDCONF_FILE
+ MKT=`which mktemp`
+ printf "/usr/local/lib\n" >> $MKT
+ $SUDO cp $MKT $LDCONF_FILE
fi
--- xastir-1.9.2/scripts/get_shapelib.sh 2007-01-03 21:40:50.000000000 +0200
+++ xastir-1.9.2-mod/scripts/get_shapelib.sh 2008-08-28 15:29:26.000000000 +0300
@@ -141,10 +141,11 @@
if (! grep /usr/local/lib /etc/ld.so.conf 2>&1 > /dev/null)
then
printf "Warning: /usr/local/lib not in /etc/ld.so.conf - adding it\n"
- cp /etc/ld.so.conf /tmp
- printf "/usr/local/lib\n" >> /tmp/ld.so.conf
+ MKT=`which mktemp`
+ cp /etc/ld.so.conf $MKT
+ printf "/usr/local/lib\n" >> $MKT
$SUDO cp /etc/ld.so.conf /etc/ld.so.conf.save
- $SUDO cp /tmp/ld.so.conf /etc/ld.so.conf
+ $SUDO cp $MKT /etc/ld.so.conf
fi
if ( grep /usr/local/lib /etc/ld.so.conf )
More information about the fedora-extras-commits
mailing list