mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 05:43:15 +00:00
fs: make sure we don't save on the fly remote config to the config file #4996
This commit is contained in:
3
fs/fs.go
3
fs/fs.go
@@ -1282,6 +1282,9 @@ type setConfigFile string
|
|||||||
|
|
||||||
// Set a config item into the config file
|
// Set a config item into the config file
|
||||||
func (section setConfigFile) Set(key, value string) {
|
func (section setConfigFile) Set(key, value string) {
|
||||||
|
if strings.HasPrefix(string(section), ":") {
|
||||||
|
Errorf(nil, "Can't save config %q = %q for on the fly backend %q", key, value, section)
|
||||||
|
}
|
||||||
Debugf(nil, "Saving config %q = %q in section %q of the config file", key, value, section)
|
Debugf(nil, "Saving config %q = %q in section %q of the config file", key, value, section)
|
||||||
err := ConfigFileSet(string(section), key, value)
|
err := ConfigFileSet(string(section), key, value)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user