[Bug 808] Nonexistent $HOME breaks stuff

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Sat Sep 15 01:06:17 CEST 2007


http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=808





------- Additional Comments From cwixon at usa.net  2007-09-15 01:06 -------
Curious behavior.

I had occasion to flash a new rootfs, and in so doing, I left /home on the
default filesystem.

Even when /home/root and /root both exist, I still get HOME=/ in the login shell
and not the value it's set to in /etc/passwd.

I can fix this by specifically extracting the value from /etc/passwd in a script
sourced by /etc/profile (e.g. in my case, /etc/profile.d/userprofile.sh):

export HOME="`cat /etc/passwd | grep ^$USER | awk
'{split($0,x,":");printf("%s\n",x[6])}'`"

This is a successful workaround, but shouldn't this variable be set
automatically by the login process (/bin/tinylogin) based on the contents of
/etc/passwd?

Finally, as a followup to my initial comment, section (1), I don't believe the
hardcoded value in Xinit is ever being set.  The remaining comments stand.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are on the CC list for the bug, or are watching someone who is.




More information about the buglog mailing list