cygwin: Use errno instead of _impure_ptr->_errno
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
78ade082fe
commit
9cc89b0438
@ -454,8 +454,7 @@ posify_maybe (char **here, const char *value, char *outenv)
|
|||||||
|
|
||||||
memcpy (outenv, src, len);
|
memcpy (outenv, src, len);
|
||||||
char *newvalue = outenv + len;
|
char *newvalue = outenv + len;
|
||||||
if (!conv->toposix (value, newvalue, NT_MAX_PATH - len)
|
if (!conv->toposix (value, newvalue, NT_MAX_PATH - len) || errno != EIDRM)
|
||||||
|| _impure_ptr->_errno != EIDRM)
|
|
||||||
conv->add_cache (newvalue, *value != '/' ? value : NULL);
|
conv->add_cache (newvalue, *value != '/' ? value : NULL);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user