From 54580a85480f1cdda805bb69709979a107ba7b35 Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Sun, 2 Jan 2022 15:44:35 +0100 Subject: [PATCH] Update file.c --- Sandboxie/core/drv/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sandboxie/core/drv/file.c b/Sandboxie/core/drv/file.c index be8571ec..4dcc8b82 100644 --- a/Sandboxie/core/drv/file.c +++ b/Sandboxie/core/drv/file.c @@ -1904,7 +1904,8 @@ _FX NTSTATUS File_Api_Rename(PROCESS *proc, ULONG64 *parms) &proc->normal_file_paths, &proc->open_file_paths, &proc->closed_file_paths, &proc->read_file_paths, &proc->write_file_paths, NULL); - if ((mp_flags & TRUE_PATH_WRITE_FLAG) == 0 || (mp_flags & COPY_PATH_MASK) == 0) { + //if ((mp_flags & TRUE_PATH_WRITE_FLAG) == 0 || (mp_flags & COPY_PATH_MASK) == 0) { + if ((mp_flags & TRUE_PATH_WRITE_FLAG) == 0) { #else Process_MatchPath( proc->pool, path, wcslen(path),