Okay, here goes.
Starting at line 81, the block is the following :
Code:
if touch "$ERRFILE" 2> /dev/null && [ -w "$ERRFILE" ] &&
[ ! -L "$ERRFILE" ]; then
chmod 600 "$ERRFILE"
elif ERRFILE=$(tempfile 2> /dev/null); then
if ! ln -sf "$ERRFILE" "${TMPDIR:=/tmp}/xsession-$USER"; then
message "warning: unable to symlink \"$TMPDIR/xsession-$USER\" to" \
"\"$ERRFILE\"; look for session log/errors in" \
"\"$TMPDIR/xsession-$USER\"."
fi
else
errormsg "unable to create X session log/error file; aborting."
fi
We see 2 references to /dev/null...
What's strange is that line 1 is a comment and line 150 does not exist (file ends at 129).
As for the command, here are the permissions :
-rw-r--r-- 1 root src 41 2004-10-15 21:44 /dev/null
EDIT: Seems the problems really is with /dev/null...
I hand-made myself a .xinitrc file for my user and could log into IceWM. Yay.
So I decide to yell "Victory !" on this forum and start mozilla firefox but...
/usr/bin/mozilla-firefox : line 1 : /dev/null : Permission denied
/usr/bin/mozilla-firefox : line 79 : /dev/null : Permission denied
/usr/bin/mozilla-firefox : line 174 : /dev/null : Permission denied
/usr/bin/mozilla-firefox : line 281 : /dev/null : Permission denied
Makes me feel like /dev/null is broken or has incorrect permissions... is it safe to simply
chmod 777 it ? And what exactly IS /dev/null ?
Thanks for your help.
EDIT #2: Well not fearing anything more than a fresh install, I decided to chmod 777 /dev/null and right now I'm in KDE as a regular user and everything seems to be fine. Still, I'd like to know if it's dangerous or something...