diff options
Diffstat (limited to 'gcc/incpath.c')
-rw-r--r-- | gcc/incpath.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/incpath.c b/gcc/incpath.c index ea40f4a..952d5c4 100644 --- a/gcc/incpath.c +++ b/gcc/incpath.c @@ -253,8 +253,9 @@ remove_duplicates (cpp_reader *pfile, struct cpp_dir *head, if (stat (cur->name, &st)) { - /* Dirs that don't exist are silently ignored, unless verbose. */ - if (errno != ENOENT) + /* Dirs that don't exist or have denied permissions are + silently ignored, unless verbose. */ + if ((errno != ENOENT) && (errno != EPERM)) cpp_errno (pfile, CPP_DL_ERROR, cur->name); else { |