Revert "errno: Stop using _impure_ptr->_errno completely"

This reverts commit 44b1746a41.

Bad idea.  _impure_ptr->_errno is used by newlib

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2017-07-19 10:28:39 +02:00
parent bb12a1e587
commit 78ade082fe
3 changed files with 6 additions and 5 deletions

View File

@@ -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
{