From: Jack Howarth Date: Mon, 7 Nov 2016 18:35:50 +0000 (+0000) Subject: re PR driver/78206 (bootstrap failure under Apple sandbox that blacklists reads in... X-Git-Tag: releases/gcc-5.5.0~716 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b10b833baf34860c980b59fb1f97eed61ca755ef;p=thirdparty%2Fgcc.git re PR driver/78206 (bootstrap failure under Apple sandbox that blacklists reads in /usr/local) 2016-11-06 Jack Howarth PR driver/78206 * incpath.c: (remove_dup(): Also silently ignore EPERM. From-SVN: r241920 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9e2bd1de218f..499052139557 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-06 Jack Howarth + + PR driver/78206 + * incpath.c: (remove_dup(): Also silently ignore EPERM. + 2016-11-03 Martin Liska Backport from mainline diff --git a/gcc/incpath.c b/gcc/incpath.c index 6c54ca6c1434..f0ae7d8c2903 100644 --- a/gcc/incpath.c +++ b/gcc/incpath.c @@ -255,8 +255,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 {