From aecc352e92fdaf2ae6d1037325f1c445af07543b Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Sat, 24 Aug 2019 16:51:30 +0200 Subject: [PATCH] fix state file permissions --- cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster.go b/cluster.go index 2c0c0da..263947a 100644 --- a/cluster.go +++ b/cluster.go @@ -243,7 +243,7 @@ func (c *cluster) saveState() error { return err } - return ioutil.WriteFile(statePath, stateOut, 0700) + return ioutil.WriteFile(statePath, stateOut, 0600) } func loadState(cs *ClusterState) {