Commit fe6ea021 authored by Niels Möller's avatar Niels Möller
Browse files

* src/unix_user.c (do_lookup_user): Let $HOME override the

passwd->pw_dir, if (i) the server is not running as root, and (ii)
the user logging in is the same user running the server.

Rev: src/unix_user.c:1.20
parent 1014278f
......@@ -682,7 +682,7 @@ do_lookup_user(struct user_db *s,
* like a good idea to let the HOME environment variable
* override the passwd-database. */
#if 0
#if 1
if (! (passwd->pw_uid
&& (passwd->pw_uid == getuid())
&& (home = getenv("HOME"))))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment