Commit e7ae183c authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

win32: filesystem: transform UNIX permissions into Windows flags for _wopen()

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 03772832
......@@ -81,7 +81,13 @@ int vlc_open (const char *filename, int flags, ...)
va_start (ap, flags);
if (flags & O_CREAT)
mode = va_arg (ap, int);
{
int unixmode = va_arg(ap, int);
if (unixmode & 0444)
mode |= _S_IREAD;
if (unixmode & 0222)
mode |= _S_IWRITE;
}
va_end (ap);
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment