[Pkg-bugzilla-commits] r116 - bugzilla/trunk/debian
Alexis Sukrieh
sukria-guest at costa.debian.org
Mon Sep 12 21:27:56 UTC 2005
Author: sukria-guest
Date: 2005-09-12 21:27:56 +0000 (Mon, 12 Sep 2005)
New Revision: 116
Modified:
bugzilla/trunk/debian/bugzilla.postinst
bugzilla/trunk/debian/changelog
Log:
patch for the file temp issue in postinst
Modified: bugzilla/trunk/debian/bugzilla.postinst
===================================================================
--- bugzilla/trunk/debian/bugzilla.postinst 2005-09-12 20:55:00 UTC (rev 115)
+++ bugzilla/trunk/debian/bugzilla.postinst 2005-09-12 21:27:56 UTC (rev 116)
@@ -86,7 +86,9 @@
# The params file will then be updated if needed, the resulting file
# will be saved in $params_218_new
debug "Running checksetup.pl..."
- /usr/share/bugzilla/lib/checksetup.pl $answerfile > /tmp/bugzilla.checksetup.log || true
+ tmpfile=`mktemp -t bugzilla.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
+ trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 1 2 3 13 15
+ /usr/share/bugzilla/lib/checksetup.pl $answerfile > $tmpfile || true
if [ ! -f $params_218_new ]; then
echo "Error in postinst: unable to find $params_218_new"
exit 13
@@ -99,7 +101,7 @@
rm -f $answerfile
# a bit of cleaning
- rm -f /tmp/bugzilla.checksetup.log
+ rm -f $tmpfile
# Now, our patched checksetup.pl had made a $params_218.new file, let's
# ask our fellow user if he likes to use it
Modified: bugzilla/trunk/debian/changelog
===================================================================
--- bugzilla/trunk/debian/changelog 2005-09-12 20:55:00 UTC (rev 115)
+++ bugzilla/trunk/debian/changelog 2005-09-12 21:27:56 UTC (rev 116)
@@ -1,3 +1,12 @@
+bugzilla (2.18.3-2) unstable; urgency=low
+
+ * Postinst script now uses temporary files in an safe way, with mktemp
+ rather than using a non-changing path. Thanks to Javier
+ Fernández-Sanguino Peña.
+ (closes: #321567)
+
+ -- Alexis Sukrieh <sukria at sukria.net> Mon, 12 Sep 2005 22:28:04 +0200
+
bugzilla (2.18.3-1) unstable; urgency=low
* New upstream release: 2.18.3
More information about the Pkg-bugzilla-commits
mailing list