CopyOnRead

This commit is contained in:
love-code-yeyixiao 2024-06-01 11:17:46 +08:00
parent 410b672abc
commit 683debeef2
1 changed files with 4 additions and 1 deletions

View File

@ -3516,7 +3516,10 @@ ReparseLoop:
// open, for a CopyPath that does not exist, must also include
// write access, or else it would have been handled earlier already)
//
if(SbieApi_QueryConfBool(NULL,L"CopyFileOnOpen",FALSE))
status = File_MigrateFile(
TruePath, CopyPath, IsWritePath, TRUE);
else
if (FileType & TYPE_REPARSE_POINT) {
status = File_MigrateJunction(