diff options
author | Christopher Faylor <me@cgf.cx> | 2002-07-01 15:50:02 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-07-01 15:50:02 +0000 |
commit | db57a3633615f6863b42c1ed694752dd4d70cc50 (patch) | |
tree | f2ff72619d9304975858594e9e8c31b1ed658c9a /winsup/cygwin | |
parent | 73d97618a72cddedb448ea6e1d89c47863e49538 (diff) | |
download | newlib-db57a3633615f6863b42c1ed694752dd4d70cc50.zip newlib-db57a3633615f6863b42c1ed694752dd4d70cc50.tar.gz newlib-db57a3633615f6863b42c1ed694752dd4d70cc50.tar.bz2 |
* uinfo.cc (cygheap_user::ontherange): Make cygwin root the last resort for
HOMEPATH/HOMEDRIVE for consistency with HOME.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/uinfo.cc | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index e5b232c..ba0f44e 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index d8fb382..2e7f65c 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -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, "/"); } } } |