"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
crypt: fix reading 0 length files
Nick Craig-Woodbb6cfe109d72
diff --git a/backend/crypt/cipher.go b/backend/crypt/cipher.goindex c6cdb47c6..d0f8a658e 100644--- a/backend/crypt/cipher.go+++ b/backend/crypt/cipher.go@@ -804,7 +804,7 @@ func (c *Cipher) newDecrypter(rc io.ReadCloser) (*decrypter, error) {if n < fileHeaderSize && err == io.EOF {// This read from 0..fileHeaderSize-1 bytesreturn nil, fh.finishAndClose(ErrorEncryptedFileTooShort)- } else if err != nil {+ } else if err != io.EOF && err != nil {return nil, fh.finishAndClose(err)}// check the magic