summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dump.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/dump.go b/cmd/dump.go
index 62f45ed785..b2a5815f32 100644
--- a/cmd/dump.go
+++ b/cmd/dump.go
@@ -96,6 +96,10 @@ func runDump(ctx *cli.Context) error {
log.Fatalf("Fail to save %s: %v", fileName, err)
}
+ if err := os.Chmod(fileName, 0600); err != nil {
+ log.Printf("Can't change file access permissions mask to 0600: %v", err)
+ }
+
log.Printf("Removing tmp work dir: %s", TmpWorkDir)
os.RemoveAll(TmpWorkDir)
log.Printf("Finish dumping in file %s", fileName)