check for mkdir mode
wine-devel at shemesh.biz
Thu May 26 04:20:22 CDT 2005
Dmitry Timoshkov wrote:
>"Steven Edwards" <steven_ed4153 at yahoo.com> wrote:
>>+int sys_mkdir(const char *path, mode_t mode)
>>+ return mkdir(path, mode);
>>+ return mkdir(path);
>Wouldn't it be better to emulate
No, that's introducing a race between the directory creation and the
mode setting. Also, the first form takes umask into consideration, which
the second doesn't.
Lingnu Open Source Consulting ltd.
More information about the wine-devel