Author: adsb
Date: 2008-12-02 09:25:15 +0000 (Tue, 02 Dec 2008)
New Revision: 1747

Modified:
   trunk/debian/changelog
   trunk/scripts/cvs-debi.sh
   trunk/scripts/cvs-debrelease.sh
Log:
* cvs-deb{i,release}: Use mktemp rather than a temporary directory
  name based on the process ID.

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-12-02 09:15:59 UTC (rev 1746)
+++ trunk/debian/changelog      2008-12-02 09:25:15 UTC (rev 1747)
@@ -3,11 +3,14 @@
   [ Adam D. Barratt ]
   * checkbashisms: Fix a variable redeclaration warning. Thanks,
     Neutron Soutmun. (Closes: #506975)
+  * cvs-deb{i,release}: Use mktemp rather than a temporary directory
+    name based on the process ID.
   * debi: Add an "upgrade" option indicating that only those packages
     already installed on the system should be installed, rather than
     all packages listed in the .changes file. Thanks, Colin Watson.
     (Closes: #506663)
-  * uupdate: Use mktemp rather than hard-coding a temporary directory name.
+  * uupdate: Use mktemp rather than a temporary directory name based on
+    the process ID.
 
   [ Christoph Berg ]
   * rmadison: Add debug.debian.net.

Modified: trunk/scripts/cvs-debi.sh
===================================================================
--- trunk/scripts/cvs-debi.sh   2008-12-02 09:15:59 UTC (rev 1746)
+++ trunk/scripts/cvs-debi.sh   2008-12-02 09:25:15 UTC (rev 1747)
@@ -123,8 +123,11 @@
 # environment: 
 # rootdir workdir (if all original sources are kept in one dir)
 
-TEMPDIR=/tmp/$$
-mkdir $TEMPDIR || exit 1
+TEMPDIR=$(mktemp -dt cvs-debi.XXXXXXXX) || {
+    echo "$PROGNAME: unable to create temporary directory" >&2
+    echo "Aborting..." >&2
+    exit 1
+}
 TEMPFILE=$TEMPDIR/cl-tmp
 trap "rm -f $TEMPFILE; rmdir $TEMPDIR" 0 1 2 3 7 10 13 15
 

Modified: trunk/scripts/cvs-debrelease.sh
===================================================================
--- trunk/scripts/cvs-debrelease.sh     2008-12-02 09:15:59 UTC (rev 1746)
+++ trunk/scripts/cvs-debrelease.sh     2008-12-02 09:25:15 UTC (rev 1747)
@@ -97,8 +97,11 @@
 # environment: 
 # rootdir workdir (if all original sources are kept in one dir)
 
-TEMPDIR=/tmp/$$
-mkdir $TEMPDIR || exit 1
+TEMPDIR=$(mktemp -dt cvs-debrelease.XXXXXXXX) || {
+    echo "$PROGNAME: Unable to create temporary directory" >&2
+    echo "Aborting...." >&2
+    exit 1
+}
 TEMPFILE=$TEMPDIR/cl-tmp
 trap "rm -f $TEMPFILE; rmdir $TEMPDIR" 0 1 2 3 7 10 13 15
 



-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to