SVN: xinitrc-ng/trunk/xinitdefs
baggins
baggins at pld-linux.org
Sun Jan 29 16:41:32 CET 2012
Author: baggins
Date: Sun Jan 29 16:41:32 2012
New Revision: 12471
Modified:
xinitrc-ng/trunk/xinitdefs
Log:
- fix error log file creation screwup
Modified: xinitrc-ng/trunk/xinitdefs
==============================================================================
--- xinitrc-ng/trunk/xinitdefs (original)
+++ xinitrc-ng/trunk/xinitdefs Sun Jan 29 16:41:32 2012
@@ -8,8 +8,8 @@
# Redirect errors to a file in user's home directory if possible
# GDM redirect output itself in a smarter fashion
if [ -z "$GDMSESSION" ]; then
- errfn=$(mktemp -q xerr-$USER-$DISPLAY.XXXXX)
- for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/$errfn" "/tmp/$errfn"; do
+ errfn="xerr-$USER-$DISPLAY"
+ for errfile in "$HOME/.xsession-errors" "${TMPDIR:-/tmp}/$errfn" "/tmp/$errfn"; do
if cp /dev/null "$errfile" 2> /dev/null ; then
chmod 600 "$errfile"
exec > "$errfile" 2>&1
More information about the pld-cvs-commit
mailing list