1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-gtk.git synced 2024-12-22 20:27:07 +00:00

Fixed file keyring driver being invalid

This commit is contained in:
diamondburned 2020-07-09 00:22:11 -07:00
parent 6bb7060547
commit 3f06e53e1d

View file

@ -47,7 +47,7 @@ func (p Provider) open(service string, write bool) (*os.File, error) {
return nil, errors.Wrap(err, "Failed to stat file")
}
if m := s.Mode(); m != 0600 {
return nil, fmt.Errorf("secrets.json file has unsafe permission %04o", m)
return nil, fmt.Errorf("%s file has unsafe permission %04o", filename, m)
}
return f, nil