Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
03993b45
Commit
03993b45
authored
Nov 17, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Also check for EACCES to detect noexec failures.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2e364d25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
virtual.c
dlls/ntdll/virtual.c
+2
-0
No files found.
dlls/ntdll/virtual.c
View file @
03993b45
...
...
@@ -1177,6 +1177,7 @@ static NTSTATUS map_file_into_view( struct file_view *view, int fd, size_t start
return
STATUS_NOT_SUPPORTED
;
}
break
;
case
EACCES
:
case
EPERM
:
/* noexec filesystem, fall back to read() */
if
(
flags
&
MAP_SHARED
)
{
...
...
@@ -1334,6 +1335,7 @@ static NTSTATUS map_pe_header( void *ptr, size_t size, int fd, BOOL *removable )
switch
(
errno
)
{
case
EPERM
:
case
EACCES
:
WARN
(
"noexec file system, falling back to read
\n
"
);
break
;
case
ENOEXEC
:
...
...
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