diff options
Diffstat (limited to 'gcc/incpath.c')
-rw-r--r-- | gcc/incpath.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/incpath.c b/gcc/incpath.c index ea40f4a932..98fe5ec9ab 100644 --- a/gcc/incpath.c +++ b/gcc/incpath.c @@ -1,5 +1,5 @@ /* Set up combined include path chain for the preprocessor. - Copyright (C) 1986-2016 Free Software Foundation, Inc. + Copyright (C) 1986-2017 Free Software Foundation, Inc. Broken out of cppinit.c and cppfiles.c and rewritten Mar 2003. @@ -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 { |