mscvrt: updated use of pmode flag in _s_open - set permissions of thefile after it's been created.
Ivan Peevski
cyberhorse at gmail.com
Fri Oct 17 10:00:10 CDT 2008
Thanks Dmitry,
I'll update the patch (again) and resubmit it.
This is my first time submitting a patch to wine, so still getting
used with how things work ... thanks for the help and patience
everyone :)
ivan
2008/10/17 Dmitry Timoshkov <dmitry at codeweavers.com>:
> "Ivan Peevski" <cyberhorse at gmail.com> wrote:
>
>> + /* Ignore _S_IREAD and _S_IWRITE if file exists. */
>> + if (stat(path, &buf) != 0)
>> + pmode = pmode & (MSVCRT__S_IREAD | MSVCRT__S_IWRITE); /*relevant
>> flags*/
>
> You need to use MSVCRT__stat(), not the system stat(), and appropriately
> typed buf.
>
> --
> Dmitry.
>
More information about the wine-devel
mailing list