Commit f14c3e3d by Jim Wilson

(new_include_prefix): Ignore ENOTDIR error from stat.

From-SVN: r11032
parent 7e245bad
...@@ -9795,7 +9795,7 @@ new_include_prefix (prev_file_name, prefix, name) ...@@ -9795,7 +9795,7 @@ new_include_prefix (prev_file_name, prefix, name)
/* Ignore a nonexistent directory. */ /* Ignore a nonexistent directory. */
if (stat (len ? dir->fname : ".", &dir->st) != 0) { if (stat (len ? dir->fname : ".", &dir->st) != 0) {
if (errno != ENOENT) if (errno != ENOENT && errno != ENOTDIR)
error_from_errno (dir->fname); error_from_errno (dir->fname);
free (dir); free (dir);
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment