mirror of
https://github.com/rclone/rclone.git
synced 2025-02-22 03:57:25 +08:00

S3 backend shared_credentials_file option wasn't working neither from config option nor from command line option. This was caused cause shared_credentials_file_provider works as part of chain provider, but in case user haven't specified access_token and access_key we had removed (set nil) to credentials field, that may contain actual credentials got from ChainProvider. AWS_SHARED_CREDENTIALS_FILE env varible as far as i understood worked, cause aws_sdk code handles it as one of default auth options, when there's not configured credentials.