ntdll: Don't require read access to the root directory for normal opens, similarly to the open by id case.

oldstable
Alexandre Julliard 2010-01-08 15:54:20 +01:00
parent 574eace36e
commit 25bee84030
1 changed files with 1 additions and 2 deletions

View File

@ -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)
{