Bug 1429

Summary: xdm cant find user's config files if autofs is used
Product: [Retired] Red Hat Linux Reporter: a.hentz
Component: XFree86Assignee: Preston Brown <pbrown>
Status: CLOSED WORKSFORME QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-03-19 19:00:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description a.hentz 1999-03-05 14:21:17 UTC
When we mount /home using automount and xdm, users loose
their configurations (.fvwmrc, .wm_syle). That happens
because Xsession test for the presence of these files in  a
direcory that was not yet mounted. A possible solution is to
add the following two lines to the beginninng of Xsession:
	pushd $HOME
	popd

Comment 1 David Lawrence 1999-03-18 16:29:59 UTC
The first phase of Xsession should make sure that a users home
directory is properly mounted. Thank you for the suggestion.

Comment 2 Preston Brown 1999-03-19 19:00:59 UTC
I have been testing this, and a test of the format:

if [ -f /some/path/to/file/filename.ext ]; then
	echo true
else
	echo false
fi

Seems to produce the desired results, i.e. if the filesystem isn't
mounted, the test causes the filesystem to get mounted and then the
command returns true.  Therefore if the system you are using is
configured correctly, when we "test for files that aren't mounted yet"
autofs should be mounting the filesystem and then doing the test.

I can't reproduce the problem here is what I am saying.