Bug#507950: doesn't honor $HOME while accessing .alex4/

Ivan Shmakov oneingray at gmail.com
Sat Dec 6 04:43:38 UTC 2008


Package: alex4
Severity: normal
Version: 1.1-2

	The `alex4' command currently doesn't honor the value of the
        HOME environment variable while reading its configuration, and
        uses the value from the user's passwd(5) entry instead, contrary
        to what the rest of the system does, e. g.:

nobody at home $ HOME=/var/tmp/test 
nobody at home $ export HOME 
nobody at home $ ls -d ~/ 
/var/tmp/test/
nobody at home $ alex4
Error creating dir /nonexistent/.alex4 : No such file or directory

	(Indeed, the home directory for the `nobody' user is filed as
	`/nonexistent' in passwd(5).)

	This prevents one from choosing a different directory for the
	game files to be saved under.

PS.  A quick scan through the Debian Policy Manual didn't reveal a
	requirement for the programs to use $HOME and not the passwd(5)
	entry, but I bet it really should be there.





More information about the Pkg-games-devel mailing list