From 0aab21ffff7d950ca418121223afecee3b7cd67f Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 10 Dec 2013 09:53:21 +0000 Subject: [PATCH] [FASTFAT] Set the archive attribute for new non-directory files. svn path=/trunk/; revision=61258 --- reactos/drivers/filesystems/fastfat/create.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/drivers/filesystems/fastfat/create.c b/reactos/drivers/filesystems/fastfat/create.c index 738bc6a5c1c..486bf20c5af 100644 --- a/reactos/drivers/filesystems/fastfat/create.c +++ b/reactos/drivers/filesystems/fastfat/create.c @@ -551,6 +551,8 @@ VfatCreateFile( RequestedDisposition == FILE_SUPERSEDE) { Attributes = Stack->Parameters.Create.FileAttributes & ~FILE_ATTRIBUTE_NORMAL; + if (!(RequestedOptions & FILE_DIRECTORY_FILE)) + Attributes |= FILE_ATTRIBUTE_ARCHIVE; vfatSplitPathName(&PathNameU, NULL, &FileNameU); Status = VfatAddEntry(DeviceExt, &FileNameU, &pFcb, ParentFcb, RequestedOptions, (UCHAR)(Attributes & FILE_ATTRIBUTE_VALID_FLAGS)); -- 2.17.1