Revert to leaving $HOME alone

* uinfo.cc (cygheap_user::ontherange): Revert previous patch.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2015-08-10 12:00:12 +02:00
parent 30c6a3088b
commit 1641a85e8f
3 changed files with 20 additions and 8 deletions

View File

@ -331,14 +331,7 @@ cygheap_user::ontherange (homebodies what, struct passwd *pw)
char *p;
if ((p = getenv ("HOME")))
{
debug_printf ("HOME is already in the environment %s", p);
if (p[0] != '/')
{
p = NULL;
debug_printf ("discard HOME, no absolute POSIX path");
}
}
debug_printf ("HOME is already in the environment %s", p);
if (!p)
{
if (pw && pw->pw_dir && *pw->pw_dir)