mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Fix symlink time set in Windows
The link as to be opened with write permission for attributes.
This commit is contained in:
parent
e7d93f7f42
commit
74d689b149
1 changed files with 1 additions and 1 deletions
|
|
@ -1093,7 +1093,7 @@ int windows_utimensat(int fd, const char* file, struct windows_timespec tv[2], i
|
|||
wflags = FILE_FLAG_BACKUP_SEMANTICS;
|
||||
if ((flags & AT_SYMLINK_NOFOLLOW) != 0)
|
||||
wflags |= FILE_FLAG_OPEN_REPARSE_POINT;
|
||||
h = CreateFileW(convert(conv_buf, file), 0, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, 0, OPEN_EXISTING, wflags, 0);
|
||||
h = CreateFileW(convert(conv_buf, file), FILE_WRITE_ATTRIBUTES, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, 0, OPEN_EXISTING, wflags, 0);
|
||||
if (h == INVALID_HANDLE_VALUE) {
|
||||
windows_errno(GetLastError());
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue