From 77e89251e76f5ceb58d18e8b1e313c56fbe11a3c Mon Sep 17 00:00:00 2001 From: Daan Sprenkels Date: Sat, 30 May 2020 17:07:35 +0200 Subject: [PATCH] db: Change db file mode to 660 Fixes #58 --- internal/db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db/db.go b/internal/db/db.go index 682663c..14dc2cd 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -51,7 +51,7 @@ func OpenDB(path string, fs *FileStore) (*Database, error) { return nil, errors.New("database not set") } - db, err := bolt.Open(path, 0666, &bolt.Options{Timeout: 1 * time.Second}) + db, err := bolt.Open(path, 0660, &bolt.Options{Timeout: 1 * time.Second}) if err != nil { return nil, errors.Wrapf(err, "failed to open database at '%v'", path) } -- 2.46.0