Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

crypt: fix uploads with --crypt-no-data-encryption

Nick Craig-Wood1cb31e8cc71a
diff --git a/backend/crypt/crypt.go b/backend/crypt/crypt.go
index 227a42587..2c40a1835 100644
--- a/backend/crypt/crypt.go
+++ b/backend/crypt/crypt.go
@@ -999,6 +999,9 @@ func (o *ObjectInfo) Size() int64 {
if size < 0 {
return size
}
+ if o.f.opt.NoDataEncryption {
+ return size
+ }
return o.f.cipher.EncryptedSize(size)
}