blob: f43be66b16776282b7452d8effbc306351fdf7f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- gcc/cppfiles.c 2004/06/02 09:00:36 1.1
+++ gcc/cppfiles.c 2004/06/02 09:20:49
@@ -329,8 +329,17 @@ find_file_in_dir (cpp_reader *pfile, _cp
if (file->err_no != ENOENT)
{
- open_file_failed (pfile, file);
- return true;
+ if (file->err_no == EACCES)
+ {
+ /* make EACCES non-fatal to fix bug ?? (glibc 2.3.3 on reiser4) */
+ cpp_errno (pfile, CPP_DL_WARNING, file->path);
+ return false;
+ }
+ else
+ {
+ open_file_failed (pfile, file);
+ return true;
+ }
}
free (path);
|