"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
s3: fix incorrect conversion between integer types
albertony1db8b20fbc38
diff --git a/backend/s3/s3.go b/backend/s3/s3.goindex e5810cfc2..527fae12e 100644--- a/backend/s3/s3.go+++ b/backend/s3/s3.go@@ -5007,11 +5007,11 @@ func (f *Fs) Command(ctx context.Context, name string, arg []string, opt map[strRestoreRequest: &types.RestoreRequest{},}if lifetime := opt["lifetime"]; lifetime != "" {- ilifetime, err := strconv.ParseInt(lifetime, 10, 64)- ilifetime32 := int32(ilifetime)+ ilifetime, err := strconv.ParseInt(lifetime, 10, 32)if err != nil {return nil, fmt.Errorf("bad lifetime: %w", err)}+ ilifetime32 := int32(ilifetime)req.RestoreRequest.Days = &ilifetime32}if priority := opt["priority"]; priority != "" {