Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libbacktrace
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
libbacktrace
Commits
d68a7ac6
Commit
d68a7ac6
authored
May 13, 2020
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libbacktrace: treat EACCESS like ENOENT
For
https://gcc.gnu.org/PR95061
parent
14465a95
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
posix.c
posix.c
+5
-1
No files found.
posix.c
View file @
d68a7ac6
...
...
@@ -67,7 +67,11 @@ backtrace_open (const char *filename, backtrace_error_callback error_callback,
descriptor
=
open
(
filename
,
(
int
)
(
O_RDONLY
|
O_BINARY
|
O_CLOEXEC
));
if
(
descriptor
<
0
)
{
if
(
does_not_exist
!=
NULL
&&
errno
==
ENOENT
)
/* If DOES_NOT_EXIST is not NULL, then don't call ERROR_CALLBACK
if the file does not exist. We treat lacking permission to
open the file as the file not existing; this case arises when
running the libgo syscall package tests as root. */
if
(
does_not_exist
!=
NULL
&&
(
errno
==
ENOENT
||
errno
==
EACCES
))
*
does_not_exist
=
1
;
else
error_callback
(
data
,
filename
,
errno
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment