We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8f1ef1 commit 22f58fcCopy full SHA for 22f58fc
compat/mingw.c
@@ -2937,7 +2937,7 @@ int mingw_rename(const char *pold, const char *pnew)
2937
if (gle == ERROR_ACCESS_DENIED) {
2938
if (is_inside_windows_container()) {
2939
/* Fall back to copy to destination & remove source */
2940
- if (CopyFileW(wpold, wpnew, FALSE) && !mingw_unlink(pold))
+ if (CopyFileW(wpold, wpnew, FALSE) && !mingw_unlink(pold, 1))
2941
return 0;
2942
gle = GetLastError();
2943
} else if ((attrsold = GetFileAttributesW(wpold)) & FILE_ATTRIBUTE_READONLY) {
0 commit comments