]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR driver/78206 (bootstrap failure under Apple sandbox that blacklists reads in...
authorJack Howarth <howarth.at.gcc@gmail.com>
Mon, 7 Nov 2016 18:35:50 +0000 (18:35 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Mon, 7 Nov 2016 18:35:50 +0000 (18:35 +0000)
2016-11-06  Jack Howarth  <howarth.at.gcc@gmail.com>

PR driver/78206
* incpath.c: (remove_dup(): Also silently ignore EPERM.

From-SVN: r241920

gcc/ChangeLog
gcc/incpath.c

index 9e2bd1de218f8889b6f998e3ee49f9a24a513401..499052139557d1f535af822834dbd17dedd1cc43 100644 (file)
@@ -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-03  Martin Liska  <mliska@suse.cz>
 
        Backport from mainline
index 6c54ca6c1434e475284d088b8acf718e8385d515..f0ae7d8c2903d4a110657c5032aabab6b0397691 100644 (file)
@@ -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
            {