]> wimlib.net Git - wimlib/blobdiff - src/win32_apply.c
Win32 apply: Fix FILE_ATTRIBUTE_READONLY note
[wimlib] / src / win32_apply.c
index ac7e37537e5456b0f9a3125df8d27b79c88ca813..77ff870e44d814039d9cc2451836cf6f5e31afca 100644 (file)
@@ -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;