Module: wine Branch: master Commit: 25bee84030d63ca09a35e4a9a4fe2ecd9c3150d9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=25bee84030d63ca09a35e4a9a4...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Jan 8 15:54:20 2010 +0100
ntdll: Don't require read access to the root directory for normal opens, similarly to the open by id case.
---
dlls/ntdll/directory.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c index 7b124af..ecd9418 100644 --- a/dlls/ntdll/directory.c +++ b/dlls/ntdll/directory.c @@ -2550,8 +2550,7 @@ NTSTATUS nt_to_unix_file_name_attr( const OBJECT_ATTRIBUTES *attr, ANSI_STRING * return STATUS_NO_MEMORY; unix_name[0] = '.';
- if (!(status = server_get_unix_fd( attr->RootDirectory, FILE_READ_DATA, &root_fd, - &needs_close, &type, NULL ))) + if (!(status = server_get_unix_fd( attr->RootDirectory, 0, &root_fd, &needs_close, &type, NULL ))) { if (type != FD_TYPE_DIR) {