Bug#402087: xdm: "no home directory" test for Xstartup
Package: xdm
Version: 1:1.0.4-1
Severity: normal
/etc/X11/xdm/Xstartup includes a couple of commented-out lines that seem
to have been intended to report a "no home directory" condition to the
user. I propose the following in their place:
# Warn if the user's home directory does not exist.
# It seems that $HOME is set to / after this script
# is executed, so we can't just compare $HOME with ~$USER.
if [ ! -d `eval echo ~$USER` ]
then
xmessage "Home directory does not exist!"
fi
(In NFS environments, missing home directories are not uncommon. Console
logon reports the condition loudly. In an Xsession the results can be
odd, e.g. lost preferences. Showing a message is important.)
Phil.
Reply to: