Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-07-01 19:50:02 +0400
committerChristopher Faylor <me@cgf.cx>2002-07-01 19:50:02 +0400
commitdb57a3633615f6863b42c1ed694752dd4d70cc50 (patch)
treef2ff72619d9304975858594e9e8c31b1ed658c9a /winsup/cygwin/uinfo.cc
parent73d97618a72cddedb448ea6e1d89c47863e49538 (diff)
* uinfo.cc (cygheap_user::ontherange): Make cygwin root the last resort for
HOMEPATH/HOMEDRIVE for consistency with HOME.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r--winsup/cygwin/uinfo.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index d8fb3829b..2e7f65c93 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, "/");
}
}
}