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

cmd: when running --password-command allow use of stdin

Sébastien Gross395f25997880
diff --git a/fs/config/config.go b/fs/config/config.go
index 53d67ef03..fcc42b097 100644
--- a/fs/config/config.go
+++ b/fs/config/config.go
@@ -282,6 +282,7 @@ func loadConfigFile() (*goconfig.ConfigFile, error) {
cmd.Stdout = &stdout
cmd.Stderr = &stderr
+ cmd.Stdin = os.Stdin
if err := cmd.Run(); err != nil {
// One does not always get the stderr returned in the wrapped error.