Author: adsb
Date: 2009-05-11 20:30:32 +0000 (Mon, 11 May 2009)
New Revision: 1881

Modified:
   trunk/debian/changelog
   trunk/scripts/debsnap.sh
Log:
debsnap: Fix mktemp call to use a sufficient number of Xs in the template
string (Closes: #528193) and use -t rather than hard-coding /tmp.

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2009-05-11 20:16:38 UTC (rev 1880)
+++ trunk/debian/changelog      2009-05-11 20:30:32 UTC (rev 1881)
@@ -3,6 +3,8 @@
   * chdist: Make --data-dir work with relative paths.  (Closes: #528254)
   * debchange: Add karmic (koala) to the list of recognised Ubuntu
     distributions.
+  * debsnap: Fix mktemp call to use a sufficient number of Xs in the template
+    string (Closes: #528193) and use -t rather than hard-coding /tmp.
   * debuild: Use printf when parsing the DEBUILD_LINTIAN_OPTS configuration
     file variable, to avoid eating -E.  (Closes: #527027)
   * mass-bug: Add an option to specify that the supplied package names are

Modified: trunk/scripts/debsnap.sh
===================================================================
--- trunk/scripts/debsnap.sh    2009-05-11 20:16:38 UTC (rev 1880)
+++ trunk/scripts/debsnap.sh    2009-05-11 20:30:32 UTC (rev 1881)
@@ -220,7 +220,7 @@
 
 
 # download the Sources.gz
-tmpdir=$(mktemp -d /tmp/$PROGNAME.XXXX)
+tmpdir=$(mktemp -d -t $PROGNAME.XXXXXXXX)
 trap "rm -rf \"$tmpdir\"; exit 1" 0 SIGHUP SIGINT SIGTERM
 sources_url="$DEBSNAP_BASE_URL/$clean_dir/$DEBSNAP_SOURCES_GZ_PATH"
 sources_path="$tmpdir/Sources.gz"



-- 
To unsubscribe, send mail to pkg-devscripts-unsubscr...@teams.debian.net.

Reply via email to