[FASTFAT]

Set the archive attribute for new non-directory files.

svn path=/trunk/; revision=61258
This commit is contained in:
Eric Kohl 2013-12-10 09:53:21 +00:00
parent 9ac89f7ffd
commit 0aab21ffff

View file

@ -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));