mirror of
https://github.com/diamondburned/cchat-gtk.git
synced 2025-12-01 08:58:09 +00:00
Fixed octals being formatted improperly
This commit is contained in:
parent
394535faff
commit
6bb7060547
|
|
@ -47,7 +47,7 @@ func (p Provider) open(service string, write bool) (*os.File, error) {
|
||||||
return nil, errors.Wrap(err, "Failed to stat file")
|
return nil, errors.Wrap(err, "Failed to stat file")
|
||||||
}
|
}
|
||||||
if m := s.Mode(); m != 0600 {
|
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
|
return f, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue