"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
bisync: fix endless loop if lockfile decoder errors
nielash04128f97ee24
diff --git a/cmd/bisync/lockfile.go b/cmd/bisync/lockfile.goindex 282fbdd1a..876b9cde6 100644--- a/cmd/bisync/lockfile.go+++ b/cmd/bisync/lockfile.go@@ -99,7 +99,10 @@ func (b *bisyncRun) lockFileIsExpired() bool {b.handleErr(b.lockFile, "error reading lock file", err, true, true)dec := json.NewDecoder(rdf)for {- if err := dec.Decode(&data); err == io.EOF {+ if err := dec.Decode(&data); err != nil {+ if err != io.EOF {+ fs.Errorf(b.lockFile, "err: %v", err)+ }break}}