Author: ekohl
Date: Tue Dec 10 18:48:55 2013
New Revision: 61259
URL:
http://svn.reactos.org/svn/reactos?rev=61259&view=rev
Log:
[FASTFAT]
Set the archive attribute for opened non-directory files in overwrite or supersede mode.
Modified:
trunk/reactos/drivers/filesystems/fastfat/create.c
Modified: trunk/reactos/drivers/filesystems/fastfat/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] Tue Dec 10 18:48:55
2013
@@ -694,6 +694,13 @@
RequestedDisposition == FILE_OVERWRITE_IF ||
RequestedDisposition == FILE_SUPERSEDE)
{
+ if (!(*pFcb->Attributes & FILE_ATTRIBUTE_DIRECTORY))
+ {
+ *pFcb->Attributes = Stack->Parameters.Create.FileAttributes &
~FILE_ATTRIBUTE_NORMAL;
+ *pFcb->Attributes |= FILE_ATTRIBUTE_ARCHIVE;
+ VfatUpdateEntry(pFcb);
+ }
+
ExAcquireResourceExclusiveLite(&(pFcb->MainResource), TRUE);
Status = VfatSetAllocationSizeInformation(FileObject,
pFcb,