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 5a526e5 + 975fc04 commit bbca240Copy full SHA for bbca240
compat/mingw.c
@@ -2278,7 +2278,9 @@ int mingw_rename(const char *pold, const char *pnew)
2278
2279
old_handle = CreateFileW(wpold, DELETE,
2280
FILE_SHARE_WRITE | FILE_SHARE_READ | FILE_SHARE_DELETE,
2281
- NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL);
+ NULL, OPEN_EXISTING,
2282
+ FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OPEN_REPARSE_POINT,
2283
+ NULL);
2284
if (old_handle == INVALID_HANDLE_VALUE) {
2285
errno = err_win_to_posix(GetLastError());
2286
return -1;
0 commit comments