From 4982881189a2534cebfb79239294dda03d5a0d94 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 17 Aug 2013 20:07:04 -0500 Subject: [PATCH] Win32 apply: Fix FILE_ATTRIBUTE_READONLY note --- src/win32_apply.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.43.0