Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c634f34a
Commit
c634f34a
authored
Jan 07, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jan 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Fix sharing permissions of piped output files.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fedfe2ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+1
-1
wcmdmain.c
programs/cmd/wcmdmain.c
+3
-3
No files found.
programs/cmd/tests/test_builtins.cmd.exp
View file @
c634f34a
...
...
@@ -1207,7 +1207,7 @@ passed
--- a batch file can delete itself
file correctly deleted
--- a batch file can alter itself
@todo_wine@
bar
bar
---------- Testing copy
Passed: Found expected dummy.file
Passed: Found expected dir1\file1
...
...
programs/cmd/wcmdmain.c
View file @
c634f34a
...
...
@@ -1364,7 +1364,7 @@ void WCMD_execute (const WCHAR *command, const WCHAR *redirects,
if
(
cmdList
&&
(
*
cmdList
)
->
pipeFile
[
0
]
!=
0x00
)
{
WINE_TRACE
(
"Input coming from %s
\n
"
,
wine_dbgstr_w
((
*
cmdList
)
->
pipeFile
));
h
=
CreateFileW
((
*
cmdList
)
->
pipeFile
,
GENERIC_READ
,
FILE_SHARE_READ
,
&
sa
,
OPEN_EXISTING
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
&
sa
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
|
FILE_FLAG_DELETE_ON_CLOSE
,
NULL
);
if
(
h
==
INVALID_HANDLE_VALUE
)
{
WCMD_print_error
();
...
...
@@ -1425,8 +1425,8 @@ void WCMD_execute (const WCHAR *command, const WCHAR *redirects,
}
else
{
WCHAR
*
param
=
WCMD_parameter
(
p
,
0
,
NULL
,
FALSE
,
FALSE
);
h
=
CreateFileW
(
param
,
GENERIC_WRITE
,
0
,
&
sa
,
creationDisposition
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
h
=
CreateFileW
(
param
,
GENERIC_WRITE
,
FILE_SHARE_READ
|
FILE_SHARE_DELETE
,
&
sa
,
creationDisposition
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
h
==
INVALID_HANDLE_VALUE
)
{
WCMD_print_error
();
heap_free
(
cmd
);
...
...
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