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
6ff0bb78
Commit
6ff0bb78
authored
Jun 22, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Set the Unix current directory also in the exec process case.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=49425
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c468a369
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
process.c
dlls/ntdll/unix/process.c
+4
-1
No files found.
dlls/ntdll/unix/process.c
View file @
6ff0bb78
...
...
@@ -589,7 +589,7 @@ NTSTATUS CDECL exec_process( UNICODE_STRING *path, UNICODE_STRING *cmdline, NTST
{
pe_image_info_t
pe_info
;
BOOL
is_child_64bit
;
int
socketfd
[
2
];
int
unixdir
,
socketfd
[
2
];
char
**
argv
;
HANDLE
handle
;
...
...
@@ -615,6 +615,8 @@ NTSTATUS CDECL exec_process( UNICODE_STRING *path, UNICODE_STRING *cmdline, NTST
return
status
;
}
unixdir
=
get_unix_curdir
(
NtCurrentTeb
()
->
Peb
->
ProcessParameters
);
if
(
socketpair
(
PF_UNIX
,
SOCK_STREAM
,
0
,
socketfd
)
==
-
1
)
return
STATUS_TOO_MANY_OPENED_FILES
;
#ifdef SO_PASSCRED
else
...
...
@@ -637,6 +639,7 @@ NTSTATUS CDECL exec_process( UNICODE_STRING *path, UNICODE_STRING *cmdline, NTST
if
(
!
status
)
{
if
(
!
(
argv
=
build_argv
(
cmdline
,
2
)))
return
STATUS_NO_MEMORY
;
fchdir
(
unixdir
);
do
{
status
=
exec_wineloader
(
argv
,
socketfd
[
0
],
is_child_64bit
,
...
...
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