From ddb78d287c3ea63abfe3b7b790514e4b8dad95b9 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 29 Jan 2015 19:28:31 -0600 Subject: [PATCH] win32_apply.c: in NO_ATTRIBUTES mode, reset file attributes --- src/win32_apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32_apply.c b/src/win32_apply.c index a0b0db08..966e957d 100644 --- a/src/win32_apply.c +++ b/src/win32_apply.c @@ -2369,7 +2369,7 @@ do_apply_metadata_to_file(HANDLE h, const struct wim_inode *inode, info.LastWriteTime.QuadPart = inode->i_last_write_time; info.ChangeTime.QuadPart = 0; if (ctx->common.extract_flags & WIMLIB_EXTRACT_FLAG_NO_ATTRIBUTES) { - info.FileAttributes = 0; + info.FileAttributes = FILE_ATTRIBUTE_NORMAL; } else { info.FileAttributes = inode->i_attributes & ~SPECIAL_ATTRIBUTES; if (info.FileAttributes == 0) -- 2.46.1