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
afce6158
Commit
afce6158
authored
Dec 03, 2008
by
Jeff Zaroyko
Committed by
Alexandre Julliard
Dec 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineserver: Don't use O_CREAT and O_EXCL when attempting to open directories.
parent
f8b5aa34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
file.c
dlls/kernel32/tests/file.c
+1
-1
fd.c
server/fd.c
+1
-1
No files found.
dlls/kernel32/tests/file.c
View file @
afce6158
...
...
@@ -783,7 +783,7 @@ static void test_CreateFileW(void)
ok
(
ret
==
TRUE
,
"couldn't create temporary directory
\n
"
);
hFile
=
CreateFileW
(
filename
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
OPEN_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
|
FILE_FLAG_BACKUP_SEMANTICS
,
NULL
);
todo_wine
ok
(
hFile
!=
INVALID_HANDLE_VALUE
,
ok
(
hFile
!=
INVALID_HANDLE_VALUE
,
"expected CreateFile to succeed on existing directory, error: %d
\n
"
,
GetLastError
());
CloseHandle
(
hFile
);
ret
=
RemoveDirectoryW
(
filename
);
...
...
server/fd.c
View file @
afce6158
...
...
@@ -1582,7 +1582,7 @@ struct fd *open_fd( const char *name, int flags, mode_t *mode, unsigned int acce
/* if we tried to open a directory for write access, retry read-only */
if
(
errno
!=
EISDIR
||
!
(
access
&
FILE_UNIX_WRITE_ACCESS
)
||
(
fd
->
unix_fd
=
open
(
name
,
O_RDONLY
|
(
flags
&
~
O_TRUNC
),
*
mode
))
==
-
1
)
(
fd
->
unix_fd
=
open
(
name
,
O_RDONLY
|
(
flags
&
~
(
O_TRUNC
|
O_CREAT
|
O_EXCL
)
),
*
mode
))
==
-
1
)
{
file_set_error
();
goto
error
;
...
...
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