diff options
author | Camila <hello@camila.codes> | 2021-11-29 20:26:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 20:26:00 +0300 |
commit | c004db207023270798df4aebdb48653f5c203d15 (patch) | |
tree | 6b076f43eadf601f4db33533006d2e10054e6108 | |
parent | fd60e605411e63387cafa2d03e966716d295793f (diff) | |
parent | 48ada55e77faf606887f4780ae38d3972fe81ec9 (diff) |
Merge pull request #4013 from nextcloud/backport/4012/stable-3.4v3.4.0
[stable-3.4] fix random error when updating CfApi metadata
-rw-r--r-- | src/libsync/vfs/cfapi/cfapiwrapper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsync/vfs/cfapi/cfapiwrapper.cpp b/src/libsync/vfs/cfapi/cfapiwrapper.cpp index 525ba7c9c..09fb3764a 100644 --- a/src/libsync/vfs/cfapi/cfapiwrapper.cpp +++ b/src/libsync/vfs/cfapi/cfapiwrapper.cpp @@ -707,6 +707,7 @@ OCC::Result<OCC::Vfs::ConvertToPlaceholderResult, QString> OCC::CfApiWrapper::up OCC::Utility::UnixTimeToLargeIntegerFiletime(modtime, &metadata.BasicInfo.LastWriteTime); OCC::Utility::UnixTimeToLargeIntegerFiletime(modtime, &metadata.BasicInfo.LastAccessTime); OCC::Utility::UnixTimeToLargeIntegerFiletime(modtime, &metadata.BasicInfo.ChangeTime); + metadata.BasicInfo.FileAttributes = 0; const qint64 result = CfUpdatePlaceholder(handle.get(), &metadata, fileIdentity.data(), sizeToDWORD(fileIdentitySize), |