https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5729380349a3bc1ed7bd7…
commit 5729380349a3bc1ed7bd7ab995fbb14dc6f5081b
Author: Mark Harmstone <mark(a)harmstone.com>
AuthorDate: Sun Nov 11 18:47:35 2018 +0000
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Nov 11 21:47:29 2018 +0100
[BTRFS] Import BTRFS upstream commit e43183a0 "open_file: set granted_access when
creating file".
Better solution for the original problem described at:
https://github.com/maharmstone/btrfs/pull/123
---
drivers/filesystems/btrfs/create.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/filesystems/btrfs/create.c b/drivers/filesystems/btrfs/create.c
index 39fbf09240..4c4c5dd984 100644
--- a/drivers/filesystems/btrfs/create.c
+++ b/drivers/filesystems/btrfs/create.c
@@ -3557,6 +3557,7 @@ static NTSTATUS open_file(PDEVICE_OBJECT DeviceObject,
_Requires_lock_held_(_Cur
release_fcb_lock(Vcb);
Irp->IoStatus.Information = NT_SUCCESS(Status) ? FILE_CREATED : 0;
+ granted_access = IrpSp->Parameters.Create.SecurityContext->DesiredAccess;
}
if (NT_SUCCESS(Status) && !(options & FILE_NO_INTERMEDIATE_BUFFERING))