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>2001-03-26 05:16:11 +0400
committerChristopher Faylor <me@cgf.cx>2001-03-26 05:16:11 +0400
commitaa73152ef735cc584a0fadc817263d5739e5021c (patch)
tree719913bf8f0cd3f73e044f32a2613a362961047c /winsup/cygwin/environ.cc
parent6e8a78d90ca6ae67d0e5d904c95e9bd7b943a539 (diff)
* dlfcn.cc (check_access): Eliminate.
(check_path_access): Use passed in path_conv buf. (get_full_path_of_dll): Use passed in name buf to avoid a static. Rip out most of the path checking since LoadLibrary will do all of this automatically. (dlopen): Set errno when appropriate (may not be compliant?). * environ.cc (posify): Don't pass in "native" path if it seems to actually be posix.
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r--winsup/cygwin/environ.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
index 2c6e13b39..43b246e27 100644
--- a/winsup/cygwin/environ.cc
+++ b/winsup/cygwin/environ.cc
@@ -137,7 +137,7 @@ posify (char **here, const char *value)
char *outenv = (char *) malloc (1 + len + conv->posix_len (value));
memcpy (outenv, src, len);
conv->toposix (value, outenv + len);
- conv->add_cache (outenv + len, value);
+ conv->add_cache (outenv + len, *value != '/' ? value : NULL);
debug_printf ("env var converted to %s", outenv);
*here = outenv;