"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
fs/config: Read configuration passwords from stdin even when terminated with EOF - fixes #8480
Samantha Bowen199f61cefa53
diff --git a/fs/config/ui.go b/fs/config/ui.goindex 6092fbae1..226a8f832 100644--- a/fs/config/ui.go+++ b/fs/config/ui.go@@ -7,6 +7,7 @@ import ("context""errors""fmt"+ "io""os""slices""sort"@@ -28,7 +29,7 @@ import (var ReadLine = func() string {buf := bufio.NewReader(os.Stdin)line, err := buf.ReadString('\n')- if err != nil {+ if err != nil && (line == "" || err != io.EOF) {fs.Fatalf(nil, "Failed to read line: %v", err)}return strings.TrimSpace(line)