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.
2 parents 2bd190b + 6a994b2 commit 3003038Copy full SHA for 3003038
compat/mingw.c
@@ -2926,7 +2926,9 @@ int mingw_rename(const char *pold, const char *pnew)
2926
2927
old_handle = CreateFileW(wpold, DELETE,
2928
FILE_SHARE_WRITE | FILE_SHARE_READ | FILE_SHARE_DELETE,
2929
- NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL);
+ NULL, OPEN_EXISTING,
2930
+ FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OPEN_REPARSE_POINT,
2931
+ NULL);
2932
if (old_handle == INVALID_HANDLE_VALUE) {
2933
errno = err_win_to_posix(GetLastError());
2934
return -1;
0 commit comments