aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJack Howarth <howarth.at.gcc@gmail.com>2016-11-07 18:33:49 +0000
committerMike Stump <mrs@gcc.gnu.org>2016-11-07 18:33:49 +0000
commit68fe024edf788d591d84263208ea392004db7fda (patch)
tree17c8bd4050275278048f9cc7571adb35fc9b3dd6 /gcc
parentf73fbf900d484b5d37b7432f21db84e5bf1efd75 (diff)
downloadgcc-68fe024edf788d591d84263208ea392004db7fda.zip
gcc-68fe024edf788d591d84263208ea392004db7fda.tar.gz
gcc-68fe024edf788d591d84263208ea392004db7fda.tar.bz2
re PR driver/78206 (bootstrap failure under Apple sandbox that blacklists reads in /usr/local)
2016-11-06 Jack Howarth <howarth.at.gcc@gmail.com> PR driver/78206 * incpath.c: (remove_dup(): Also silently ignore EPERM. From-SVN: r241919
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/incpath.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 86f5911..eaa59f2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-06 Jack Howarth <howarth.at.gcc@gmail.com>
+
+ PR driver/78206
+ * incpath.c: (remove_dup(): Also silently ignore EPERM.
+
2016-11-07 Martin Jambor <mjambor@suse.cz>
* tree.c (verify_type_variant): Use pointer comparison to check that
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
{