rclone/fs/config
Nick Craig-Wood 770b3496a1 config: fix in memory config not saving on the fly backend config
Before this fix, saving a :backend config gave the error

    Can't save config "token" = "XXX" for on the fly backend ":backend"

Even when using the in-memory config `--config ""`

This fixes the problem by
- always using the in memory config if it is configured
- moving the check for a :backend config save to the file config backend

It also removes the contents of the config items being saved from the
log which saves confidential tokens being logged.

Fixes #5451
2021-07-20 12:09:38 +01:00
..
configfile config: fix in memory config not saving on the fly backend config 2021-07-20 12:09:38 +01:00
configflags fs: make --dump imply -vv (#5418) 2021-06-23 00:32:26 +08:00
configmap configmap: Add Encode and Decode methods to Simple for command line encoding #5178 2021-04-08 12:34:15 +01:00
configstruct build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
flags config: fixed issues with flags/options set by environment vars. 2021-07-05 16:38:20 +01:00
obscure config: split up main file more and move tests into correct packages 2021-03-11 17:29:26 +00:00
testdata Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
authorize.go fs: change Config callback into state based callback #3455 2021-05-14 14:07:44 +01:00
config.go config: fix in memory config not saving on the fly backend config 2021-07-20 12:09:38 +01:00
config_read_password.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
config_read_password_unsupported.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config_test.go config: delay load config file (#5258) 2021-04-26 23:37:49 +02:00
crypt.go config: remove log.Fatal and replace with error passing where possible 2021-03-14 16:03:35 +00:00
crypt_internal_test.go config: split up main file more and move tests into correct packages 2021-03-11 17:29:26 +00:00
crypt_test.go config: delay load config file (#5258) 2021-04-26 23:37:49 +02:00
default_storage.go config: replace defaultConfig with a thread-safe in-memory implementation 2021-05-07 16:04:09 +01:00
default_storage_test.go config: replace defaultConfig with a thread-safe in-memory implementation 2021-05-07 16:04:09 +01:00
rc.go config create: add --state and --result parameters #3455 2021-05-14 14:07:44 +01:00
rc_test.go config: delay load config file (#5258) 2021-04-26 23:37:49 +02:00
ui.go config: tidy code to use UpdateRemote/CreateRemote instead of editOptions #3455 2021-05-14 14:07:44 +01:00
ui_test.go fs: add --all to rclone config create/update to ask all the config questions #3455 2021-05-14 14:07:44 +01:00