]> wimlib.net Git - wimlib/commitdiff
Win32 apply: Fix FILE_ATTRIBUTE_READONLY note
authorEric Biggers <ebiggers3@gmail.com>
Sun, 18 Aug 2013 01:07:04 +0000 (20:07 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 18 Aug 2013 01:07:04 +0000 (20:07 -0500)
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;