[ros-dev] Re: [ros-diffs] [hbirr] 17912: The share disposition isn't necessary for FILE_READ_ATTRIBUTES.

Gunnar Dalsnes hardon at online.no
Sun Sep 18 16:27:28 CEST 2005


Is this correct? I can't see how... Even GENERIC_READ imply 
FILE_READ_ATTRIBUTES and using your "share disposition isn't necessary 
for FILE_READ_ATTRIBUTES rule" this means file sharing  isnt needed for 
GENERIC_READ either...

hbirr at svn.reactos.com wrote:
> The share disposition isn't necessary for FILE_READ_ATTRIBUTES.
> 
> Modified: trunk/reactos/lib/kernel32/file/file.c
> 
> ------------------------------------------------------------------------
> *Modified: trunk/reactos/lib/kernel32/file/file.c*
> 
> --- trunk/reactos/lib/kernel32/file/file.c	2005-09-18 13:36:29 UTC (rev 17911)
> +++ trunk/reactos/lib/kernel32/file/file.c	2005-09-18 13:46:37 UTC (rev 17912)
> @@ -873,7 +873,7 @@
> 
>  		       SYNCHRONIZE | FILE_READ_ATTRIBUTES,
>  		       &ObjectAttributes,
>  		       &IoStatusBlock,
> 
> -		       FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
> 
> +		       0,
> 
>  		       FILE_SYNCHRONOUS_IO_NONALERT);
>    RtlFreeUnicodeString (&FileName);
>    if (!NT_SUCCESS (Status))
> 


More information about the Ros-dev mailing list