Fix wrong if condition for windows (#18637)

Fixes #18594
This commit is contained in:
ndbn 2024-01-22 23:32:23 +03:00 committed by GitHub
parent 3331c5e7af
commit 9e684e8d1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2365,7 +2365,7 @@ fn renameTmpIntoCache(
// See https://github.com/ziglang/zig/issues/8362 // See https://github.com/ziglang/zig/issues/8362
error.AccessDenied => switch (builtin.os.tag) { error.AccessDenied => switch (builtin.os.tag) {
.windows => { .windows => {
if (!seen_eaccess) return error.AccessDenied; if (seen_eaccess) return error.AccessDenied;
seen_eaccess = true; seen_eaccess = true;
try cache_directory.handle.deleteTree(o_sub_path); try cache_directory.handle.deleteTree(o_sub_path);
continue; continue;