Do not make a directory read-only.

oldstable
Rein Klazes 2004-08-18 20:57:30 +00:00 committed by Alexandre Julliard
parent ae1238b4b0
commit 6293769f52
1 changed files with 4 additions and 1 deletions

View File

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