From 3871e447328c5f99c321075cb985ba729e168a2c Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 5 Nov 2024 13:20:08 -0600 Subject: [PATCH] winfsp unit tests and fixes --- .../src/drives/winfsp/remotewinfsp/remote_server.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp index 64fa0cd9..af44834e 100644 --- a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp +++ b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp @@ -991,6 +991,10 @@ auto remote_server::winfsp_create(PWSTR file_name, UINT32 create_options, create_flags |= FILE_FLAG_POSIX_SEMANTICS; } + if ((create_options & FILE_DELETE_ON_CLOSE) != 0U) { + create_flags |= FILE_FLAG_DELETE_ON_CLOSE; + } + attributes |= ((create_options & FILE_DIRECTORY_FILE) == 0U ? FILE_ATTRIBUTE_ARCHIVE : FILE_ATTRIBUTE_DIRECTORY);