umask logging line tweak

This commit is contained in:
Mechiel Lukkien 2023-02-22 23:26:00 +01:00
parent f2fd6241a0
commit 210fd34702
No known key found for this signature in database

View file

@ -12,7 +12,7 @@ func CheckUmask() error {
old := syscall.Umask(007) old := syscall.Umask(007)
syscall.Umask(old) syscall.Umask(old)
if old&7 != 7 { if old&7 != 7 {
return fmt.Errorf(`umask must have "7" for world/other, e.g. 007, not current %o`, old) return fmt.Errorf(`umask must have 7 for world/other, e.g. 007, not current %03o`, old)
} }
return nil return nil
} }