forked from electricdusk/rushlink
Merge pull request 'db: Change db file mode to 660' (#62) from issue-58 into master
This commit is contained in:
commit
badc22b8d0
@ -51,7 +51,7 @@ func OpenDB(path string, fs *FileStore) (*Database, error) {
|
|||||||
return nil, errors.New("database not set")
|
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 {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "failed to open database at '%v'", path)
|
return nil, errors.Wrapf(err, "failed to open database at '%v'", path)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user