diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2017-07-19 10:28:39 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-07-19 10:28:39 +0200 |
commit | 78ade082fef08900ad104628061f57aaa4c1eb8e (patch) | |
tree | 78e40366a4f0c43e3cd7f1beec712bfb604ca8f8 /winsup/cygwin/environ.cc | |
parent | bb12a1e587b07d3730f631a63fb2a46f811f867d (diff) | |
download | newlib-78ade082fef08900ad104628061f57aaa4c1eb8e.zip newlib-78ade082fef08900ad104628061f57aaa4c1eb8e.tar.gz newlib-78ade082fef08900ad104628061f57aaa4c1eb8e.tar.bz2 |
Revert "errno: Stop using _impure_ptr->_errno completely"
This reverts commit 44b1746a41921533d27aca414a9188314cb725b6.
Bad idea. _impure_ptr->_errno is used by newlib
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r-- | winsup/cygwin/environ.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index 10ffd68..647db5f 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -454,7 +454,8 @@ posify_maybe (char **here, const char *value, char *outenv) memcpy (outenv, src, len); char *newvalue = outenv + len; - if (!conv->toposix (value, newvalue, NT_MAX_PATH - len) || errno != EIDRM) + if (!conv->toposix (value, newvalue, NT_MAX_PATH - len) + || _impure_ptr->_errno != EIDRM) conv->add_cache (newvalue, *value != '/' ? value : NULL); else { |