mirror of
https://github.com/rclone/rclone.git
synced 2025-04-14 00:58:59 +02: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 {
|
if err != nil {
|
||||||
log.Fatalf("Failed to save config file: %v", err)
|
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
|
// Show an overview of the config file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user