* cppfiles.c (open_file): Prevent the call
for stat from overwriting errno.
From-SVN: r125757
+2007-06-16 Vladimir Prus <vladimir@codesourcery.com>
+
+ * cppfiles.c (open_file): Prevent the call
+ for stat from overwriting errno.
+
2007-06-09 Vladimir Prus <vladimir@codesourcery.com>
* cppfiles.c (open_file): Account for the
if (stat (file->path, &file->st) == 0
&& S_ISDIR (file->st.st_mode))
errno = ENOENT;
+ else
+ /* The call to stat may have reset errno. */
+ errno = EACCESS;
}
#endif
else if (errno == ENOTDIR)