[DebianGIS-dev] r1836 - packages/gpsdrive/trunk/debian/patches
nd-guest at alioth.debian.org
nd-guest at alioth.debian.org
Mon Dec 29 16:12:45 UTC 2008
Author: nd-guest
Date: 2008-12-29 16:12:45 +0000 (Mon, 29 Dec 2008)
New Revision: 1836
Modified:
packages/gpsdrive/trunk/debian/patches/100-fix-insecure-tempfiles.dpatch
Log:
update patch for geo-code to fix a potential race condition
Modified: packages/gpsdrive/trunk/debian/patches/100-fix-insecure-tempfiles.dpatch
===================================================================
--- packages/gpsdrive/trunk/debian/patches/100-fix-insecure-tempfiles.dpatch 2008-12-29 16:12:01 UTC (rev 1835)
+++ packages/gpsdrive/trunk/debian/patches/100-fix-insecure-tempfiles.dpatch 2008-12-29 16:12:45 UTC (rev 1836)
@@ -7,7 +7,7 @@
@DPATCH@
diff -urNad gpsdrive-2.10~pre4-6.dfsg~/scripts/geo-code gpsdrive-2.10~pre4-6.dfsg/scripts/geo-code
--- gpsdrive-2.10~pre4-6.dfsg~/scripts/geo-code 2007-09-14 21:47:07.000000000 +0000
-+++ gpsdrive-2.10~pre4-6.dfsg/scripts/geo-code 2008-08-31 21:51:50.000000000 +0000
++++ gpsdrive-2.10~pre4-6.dfsg/scripts/geo-code 2008-12-28 17:47:39.000000000 +0000
@@ -83,6 +83,7 @@
#
error() {
@@ -37,15 +37,23 @@
do
[ -f $i ] && rm -f $i
done
-@@ -248,7 +250,7 @@
+@@ -248,11 +250,11 @@
#
# Main Program
#
-TMP=/tmp/geo$$
-+TMP=`mktemp`
- STYLE=${TMP}.style
- COORDS=${TMP}.coords
- OUTWAY=${TMP}.way
+-STYLE=${TMP}.style
+-COORDS=${TMP}.coords
+-OUTWAY=${TMP}.way
+-MAP=${TMP}.gif
++TMP=`mktemp -d`
++STYLE=${TMP}/style
++COORDS=${TMP}/coords
++OUTWAY=${TMP}/way
++MAP=${TMP}/gif
+ UA="Mozilla/5.0"
+
+ if [ "$GURL" != "" ]; then
@@ -269,7 +271,6 @@
| head -n1 \
`
More information about the Pkg-grass-devel
mailing list