r3414 - tzdata/trunk/debian
Author: aurel32
Date: 2009-04-23 21:10:41 +0000 (Thu, 23 Apr 2009)
New Revision: 3414
Modified:
tzdata/trunk/debian/changelog
tzdata/trunk/debian/postinst
Log:
* postinst: fix race condition when updating /etc/localtime. Closes:
bug#516755.
Modified: tzdata/trunk/debian/changelog
===================================================================
--- tzdata/trunk/debian/changelog 2009-04-23 21:04:00 UTC (rev 3413)
+++ tzdata/trunk/debian/changelog 2009-04-23 21:10:41 UTC (rev 3414)
@@ -1,3 +1,10 @@
+tzdata (2009f-2) unstable; urgency=low
+
+ * postinst: fix race condition when updating /etc/localtime. Closes:
+ bug#516755.
+
+ -- Aurelien Jarno <aurel32@debian.org> Thu, 23 Apr 2009 23:09:53 +0200
+
tzdata (2009f-1) unstable; urgency=low
* New upstream version.
Modified: tzdata/trunk/debian/postinst
===================================================================
--- tzdata/trunk/debian/postinst 2009-04-23 21:04:00 UTC (rev 3413)
+++ tzdata/trunk/debian/postinst 2009-04-23 21:10:41 UTC (rev 3414)
@@ -27,8 +27,8 @@
# Update the timezone
echo $AREA/$ZONE > /etc/timezone
- rm -f /etc/localtime && \
- cp -f /usr/share/zoneinfo/$AREA/$ZONE /etc/localtime
+ cp -f /usr/share/zoneinfo/$AREA/$ZONE /etc/localtime.dpkg-new && \
+ mv -f /etc/localtime.dpkg-new /etc/localtime
which restorecon >/dev/null 2>&1 && restorecon /etc/localtime
echo
Reply to: