mirror of
https://github.com/mjl-/mox.git
synced 2025-06-28 01:48:15 +03:00
umask logging line tweak
This commit is contained in:
parent
f2fd6241a0
commit
210fd34702
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user