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:33:49 +0000 (18:33 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Mon, 7 Nov 2016 18:33:49 +0000 (18:33 +0000)
2016-11-06  Jack Howarth  <howarth.at.gcc@gmail.com>

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

From-SVN: r241919

gcc/ChangeLog
gcc/incpath.c

index 86f59118327c4846eac9d1e3414261bf676abfe2..eaa59f29837d10ea16cec070f9bea50018308cb4 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-07  Martin Jambor  <mjambor@suse.cz>
 
        * tree.c (verify_type_variant): Use pointer comparison to check that
index ea40f4a9323333ad3a35b36a2a30ad5902ba1a90..952d5c4727d8fdc64c7fa4dfd83627356e09c33c 100644 (file)
@@ -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
            {