From: Eric Biggers Date: Sun, 18 Aug 2013 01:07:04 +0000 (-0500) Subject: Win32 apply: Fix FILE_ATTRIBUTE_READONLY note X-Git-Tag: v1.5.0~47 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=4982881189a2534cebfb79239294dda03d5a0d94 Win32 apply: Fix FILE_ATTRIBUTE_READONLY note --- diff --git a/src/win32_apply.c b/src/win32_apply.c index ac7e3753..77ff870e 100644 --- a/src/win32_apply.c +++ b/src/win32_apply.c @@ -342,10 +342,10 @@ win32_set_file_attributes(const wchar_t *path, u32 attributes, FILE_ATTRIBUTE_ENCRYPTED; u32 actual_attributes; - /* On FAT filesystems we can't set FILE_ATTRIBUTE_READONLY on the - * initial pass (when files are created, but data not extracted); - * otherwise the system will refuse access to the file even if the - * process has SeRestorePrivilege. */ + /* Delay setting FILE_ATTRIBUTE_READONLY on the initial pass (when files + * are created, but data not extracted); otherwise the system will + * refuse access to the file even if the process has SeRestorePrivilege. + */ if (pass == 0) attributes &= ~FILE_ATTRIBUTE_READONLY;