X Strike Force XFree86 SVN commit: r1808 - in trunk/debian: . local
Author: branden
Date: 2004-09-12 23:47:14 -0500 (Sun, 12 Sep 2004)
New Revision: 1808
Modified:
trunk/debian/CHANGESETS
trunk/debian/changelog
trunk/debian/local/Xsession
Log:
In the Xsession script, attempt to create a file of non-zero length in
/tmp; a full filesystem can cause mysterious X session failures.
Update Vim modeline.
Modified: trunk/debian/CHANGESETS
===================================================================
--- trunk/debian/CHANGESETS 2004-09-12 23:04:28 UTC (rev 1807)
+++ trunk/debian/CHANGESETS 2004-09-13 04:47:14 UTC (rev 1808)
@@ -11,4 +11,8 @@
Update Danish debconf template translations (thanks, Claus Hindsgaul)
1806
+In the Xsession script, attempt to create a file of non-zero length in
+/tmp; a full filesystem can cause mysterious X session failures.
+ 1808
+
vim:set ai et sts=4 sw=4 tw=80:
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2004-09-12 23:04:28 UTC (rev 1807)
+++ trunk/debian/changelog 2004-09-13 04:47:14 UTC (rev 1808)
@@ -5,8 +5,13 @@
* Update Danish debconf template translations (thanks, Claus Hindsgaul).
(Closes: #270503)
- -- Fabio M. Di Nitto <fabbione@fabbione.net> Mon, 06 Sep 2004 15:29:56 +0200
+ Changes by Branden Robinson:
+ * In the Xsession script, attempt to create a file of non-zero length in
+ /tmp; a full filesystem can cause mysterious X session failures.
+
+ -- Branden Robinson <branden@debian.org> Sun, 12 Sep 2004 23:45:07 -0500
+
xfree86 (4.3.0.dfsg.1-7) unstable; urgency=high
Changes by Branden Robinson:
Modified: trunk/debian/local/Xsession
===================================================================
--- trunk/debian/local/Xsession 2004-09-12 23:04:28 UTC (rev 1807)
+++ trunk/debian/local/Xsession 2004-09-13 04:47:14 UTC (rev 1808)
@@ -100,6 +100,18 @@
errormsg "no \"$SYSSESSIONDIR\" directory found; aborting."
fi
+# Attempt to create a file of non-zero length in /tmp; a full filesystem can
+# cause mysterious X session failures. We do not use touch, :, or test -w
+# because they won't actually create a file with contents. We also let standard
+# error from tempfile and echo go to the error file to aid the user in
+# determining what went wrong.
+WRITE_TEST=$(tempfile)
+if ! echo "*" >>"$WRITE_TEST"; then
+ message "warning: unable to write to ${WRITE_TEST%/*}; X session may exit" \
+ "with an error"
+fi
+rm -f "$WRITE_TEST"
+
# use run-parts to source every file in the session directory; we source
# instead of executing so that the variables and functions defined above
# are available to the scripts, and so that they can pass variables to each
@@ -113,4 +125,4 @@
exit 0
-# vim:ai:et:sts=2:sw=2:tw=80:
+# vim:set ai et sts=2 sw=2 tw=80:
Reply to: