1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-gtk.git synced 2025-03-22 18:09:20 +00:00

Fixed octals being formatted improperly

This commit is contained in:
diamondburned 2020-07-09 00:20:35 -07:00
parent 394535faff
commit 6bb7060547

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 %06o", m)
return nil, fmt.Errorf("secrets.json file has unsafe permission %04o", m)
}
return f, nil