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

fstest: fix slice bounds out of range error when using -remotes local

nielashd9fbbba5c3d5
diff --git a/fstest/fstest.go b/fstest/fstest.go
index e2a594011..a0205a1c9 100644
--- a/fstest/fstest.go
+++ b/fstest/fstest.go
@@ -65,6 +65,9 @@ func Initialise() {
if envConfig := os.Getenv("RCLONE_CONFIG"); envConfig != "" {
_ = config.SetConfigPath(envConfig)
}
+ if *RemoteName == "local" {
+ *RemoteName = ""
+ }
configfile.Install()
accounting.Start(ctx)
if *Verbose {