Commit 6293769f authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Do not make a directory read-only.

parent ae1238b4
......@@ -1078,6 +1078,9 @@ NTSTATUS WINAPI NtSetInformationFile(HANDLE handle, PIO_STATUS_BLOCK io,
{
if (info->FileAttributes & FILE_ATTRIBUTE_READONLY)
{
if (S_ISDIR( st.st_mode))
WARN("FILE_ATTRIBUTE_READONLY ignored for directory.\n");
else
st.st_mode &= ~0222; /* clear write permission bits */
}
else
......
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