]> sourceware.org Git - newlib-cygwin.git/commitdiff
* uinfo.cc (cygheap_user::ontherange): Make cygwin root the last resort for
authorChristopher Faylor <me@cgf.cx>
Mon, 1 Jul 2002 15:50:02 +0000 (15:50 +0000)
committerChristopher Faylor <me@cgf.cx>
Mon, 1 Jul 2002 15:50:02 +0000 (15:50 +0000)
HOMEPATH/HOMEDRIVE for consistency with HOME.

winsup/cygwin/ChangeLog
winsup/cygwin/uinfo.cc

index e5b232c1f9b6d0ad57e3166bcfeb43fa1894b4a1..ba0f44e27a306211e4aa44c6da59c099303f0c8c 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-01  Christopher Faylor  <cgf@redhat.com>
+
+       * uinfo.cc (cygheap_user::ontherange): Make cygwin root the last resort
+       for HOMEPATH/HOMEDRIVE for consistency with HOME.
+
 2002-07-01  Corinna Vinschen  <corinna@vinschen.de>
 
        * shared.cc (sec_none): Move to sec_helper.cc.
index d8fb3829b5a0dc336f550a4a61b0bee5e5ed467d..2e7f65c930aa4c2f7f5dc7d06dbf66c11972dd43 100644 (file)
@@ -265,10 +265,8 @@ cygheap_user::ontherange (homebodies what, struct passwd *pw)
                                    MAX_PATH);
                      if (homepath_env_buf[0])
                        strcat (homepath_env_buf, "\\");
-                     else if (!GetSystemDirectory (homepath_env_buf, MAX_PATH))
-                       strcpy (homepath_env_buf, "c:\\");
-                     else if ((p = strchr (homepath_env_buf, '\\')))
-                       p[1] = '\0';
+                     else
+                       cygwin_conv_to_full_posix_path (homepath_env_buf, "/");
                    }
                }
            }
This page took 0.034925 seconds and 5 git commands to generate.