"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
lib/http: Fix bad username check in single auth secret provider
Nolan Woodsb1cb41f8da9b
diff --git a/lib/http/auth/basic.go b/lib/http/auth/basic.goindex 057524b4a..17685e9a3 100644--- a/lib/http/auth/basic.go+++ b/lib/http/auth/basic.go@@ -88,8 +88,8 @@ func HtPasswdAuth(path, realm string) httplib.Middleware {func SingleAuth(user, pass, realm string) httplib.Middleware {fs.Infof(nil, "Using --user %s --pass XXXX as authenticated user", user)pass = string(auth.MD5Crypt([]byte(pass), []byte("dlPL2MqE"), []byte("$1$")))- secretProvider := func(user, realm string) string {- if user == user {+ secretProvider := func(u, r string) string {+ if user == u {return pass}return ""