https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1641a85e8ffe8a3565fef6ce37502b6b5fb4ee9c

commit 1641a85e8ffe8a3565fef6ce37502b6b5fb4ee9c
Author: Corinna Vinschen <cori...@vinschen.de>
Date:   Mon Aug 10 12:00:12 2015 +0200

    Revert to leaving $HOME alone
    
        * uinfo.cc (cygheap_user::ontherange): Revert previous patch.
    
    Signed-off-by: Corinna Vinschen <cori...@vinschen.de>

Diff:
---
 winsup/cygwin/ChangeLog     |  4 ++++
 winsup/cygwin/release/2.2.1 | 15 +++++++++++++++
 winsup/cygwin/uinfo.cc      |  9 +--------
 3 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index dc93358..5a80243 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2015-08-10  Corinna Vinschen  <cori...@vinschen.de>
+
+       * uinfo.cc (cygheap_user::ontherange): Revert previous patch.
+
 2015-08-03  Corinna Vinschen  <cori...@vinschen.de>
 
        * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 1.
diff --git a/winsup/cygwin/release/2.2.1 b/winsup/cygwin/release/2.2.1
new file mode 100644
index 0000000..3a6da3a
--- /dev/null
+++ b/winsup/cygwin/release/2.2.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
+---------
+
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index 334c2e9..da5809f 100644
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -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)

Reply via email to