diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-26 01:16:11 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-26 01:16:11 +0000 |
commit | aa73152ef735cc584a0fadc817263d5739e5021c (patch) | |
tree | 719913bf8f0cd3f73e044f32a2613a362961047c /winsup/cygwin/environ.cc | |
parent | 6e8a78d90ca6ae67d0e5d904c95e9bd7b943a539 (diff) | |
download | cygnal-aa73152ef735cc584a0fadc817263d5739e5021c.tar.gz cygnal-aa73152ef735cc584a0fadc817263d5739e5021c.tar.bz2 cygnal-aa73152ef735cc584a0fadc817263d5739e5021c.zip |
* 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.cc | 2 |
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; |