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:
parent
30c6a3088b
commit
1641a85e8f
|
@ -1,3 +1,7 @@
|
||||||
|
2015-08-10 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* uinfo.cc (cygheap_user::ontherange): Revert previous patch.
|
||||||
|
|
||||||
2015-08-03 Corinna Vinschen <corinna@vinschen.de>
|
2015-08-03 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 1.
|
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 1.
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
What's new:
|
||||||
|
-----------
|
||||||
|
|
||||||
|
|
||||||
|
What changed:
|
||||||
|
-------------
|
||||||
|
|
||||||
|
- Revert the following patch from 2.2.0:
|
||||||
|
When started from a non-Cygwin process, check if $HOME starts with a
|
||||||
|
slash (absolute POSIX path). Otherwise ignore it.
|
||||||
|
|
||||||
|
|
||||||
|
Bug Fixes
|
||||||
|
---------
|
||||||
|
|
|
@ -331,14 +331,7 @@ cygheap_user::ontherange (homebodies what, struct passwd *pw)
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
if ((p = getenv ("HOME")))
|
if ((p = getenv ("HOME")))
|
||||||
{
|
|
||||||
debug_printf ("HOME is already in the environment %s", p);
|
debug_printf ("HOME is already in the environment %s", p);
|
||||||
if (p[0] != '/')
|
|
||||||
{
|
|
||||||
p = NULL;
|
|
||||||
debug_printf ("discard HOME, no absolute POSIX path");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!p)
|
if (!p)
|
||||||
{
|
{
|
||||||
if (pw && pw->pw_dir && *pw->pw_dir)
|
if (pw && pw->pw_dir && *pw->pw_dir)
|
||||||
|
|
Loading…
Reference in New Issue