Commit 8bf29f17 authored by Steffen Moeller's avatar Steffen Moeller Committed by Alexandre Julliard

SetFileAttributesA: "implemented" setting of directory flag as test of

compatibility.
parent f15d1806
...@@ -88,6 +88,13 @@ BOOL WINAPI SetFileAttributesA(LPCSTR lpFileName, DWORD attributes) ...@@ -88,6 +88,13 @@ BOOL WINAPI SetFileAttributesA(LPCSTR lpFileName, DWORD attributes)
/* add write permission */ /* add write permission */
buf.st_mode |= 0600 | ((buf.st_mode & 044) >> 1); buf.st_mode |= 0600 | ((buf.st_mode & 044) >> 1);
} }
if (attributes & FILE_ATTRIBUTE_DIRECTORY)
{
if (!S_ISDIR(buf.st_mode))
FIXME(file,"SetFileAttributes expected the file '%s' to be a directory",
lpFileName);
attributes &= ~FILE_ATTRIBUTE_DIRECTORY;
}
attributes &= ~(FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_SYSTEM); attributes &= ~(FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_SYSTEM);
if (attributes) if (attributes)
FIXME(file,"(%s):%lx attribute(s) not implemented.\n", FIXME(file,"(%s):%lx attribute(s) not implemented.\n",
......
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