mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
Set strict permissions on the config file
This commit is contained in:
parent
2e5f0ef258
commit
1ea9972be7
@ -91,6 +91,10 @@ func SaveConfig() {
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to save config file: %v", err)
|
||||
}
|
||||
err = os.Chmod(ConfigPath, 0600)
|
||||
if err != nil {
|
||||
log.Printf("Failed to set permissions on config file: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Show an overview of the config file
|
||||
|
Loading…
Reference in New Issue
Block a user