+2010-04-27 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * spawn.cc (find_exec): Use the first detected errno when lookup fails.
+
2010-04-27 Corinna Vinschen <corinna@vinschen.de>
* include/regex.h: Include _ansi.h to avoid missing out on preprocessor
debug_printf ("trying %s", tmp);
- if ((suffix = perhaps_suffix (tmp, buf, err, opt)) != NULL)
+ int err1;
+
+ if ((suffix = perhaps_suffix (tmp, buf, err1, opt)) != NULL)
{
if (buf.has_acls () && check_file_access (buf, X_OK, true))
continue;