server: Set the unix file write mode bit also for FILE_APPEND_DATA access.
Dmitry Timoshkov
dmitry at baikal.ru
Wed Oct 2 20:16:15 CDT 2013
Dmitry Timoshkov <dmitry at baikal.ru> wrote:
> diff --git a/server/file.c b/server/file.c
> index 2ecf97c..94d3060 100644
> --- a/server/file.c
> +++ b/server/file.c
> @@ -459,7 +459,7 @@ static mode_t file_access_to_mode( unsigned int access )
>
> access = generic_file_map_access( access );
> if (access & FILE_READ_DATA) mode |= 4;
> - if (access & FILE_WRITE_DATA) mode |= 2;
> + if (access & (FILE_WRITE_DATA|FILE_APPEND_DATA)) mode |= 2;
> if (access & FILE_EXECUTE) mode |= 1;
> return mode;
> }
I don't think that this patch should be in 'superseded' state.
--
Dmitry.
More information about the wine-devel
mailing list