From 9cc89b04383cf097fcd795b1a13670dff0d2854b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 19 Jul 2017 10:30:47 +0200 Subject: [PATCH] cygwin: Use errno instead of _impure_ptr->_errno Signed-off-by: Corinna Vinschen --- winsup/cygwin/environ.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index 647db5fe3..10ffd689c 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -454,8 +454,7 @@ 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) - || _impure_ptr->_errno != EIDRM) + if (!conv->toposix (value, newvalue, NT_MAX_PATH - len) || errno != EIDRM) conv->add_cache (newvalue, *value != '/' ? value : NULL); else {