projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ac89f7
)
[FASTFAT]
author
Eric Kohl
<eric.kohl@reactos.org>
Tue, 10 Dec 2013 09:53:21 +0000
(09:53 +0000)
committer
Eric Kohl
<eric.kohl@reactos.org>
Tue, 10 Dec 2013 09:53:21 +0000
(09:53 +0000)
Set the archive attribute for new non-directory files.
svn path=/trunk/; revision=61258
reactos/drivers/filesystems/fastfat/create.c
patch
|
blob
|
history
diff --git
a/reactos/drivers/filesystems/fastfat/create.c
b/reactos/drivers/filesystems/fastfat/create.c
index
738bc6a
..
486bf20
100644
(file)
--- 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));