diff --git a/internal/aghos/permission.go b/internal/aghos/permission.go index d98a1646..42a1de93 100644 --- a/internal/aghos/permission.go +++ b/internal/aghos/permission.go @@ -39,6 +39,12 @@ func OpenFile(name string, flag int, perm fs.FileMode) (file *os.File, err error // Stat is an extension for [os.Stat] that properly handles Windows access // rights. +// +// Note that on Windows the "other" permission bits combines the access rights +// of any trustee that is neither the owner nor the owning group for the file. +// +// TODO(e.burkov): Inspect the behavior for the World (everyone) well-known +// SID and, perhaps, use it. func Stat(name string) (fi fs.FileInfo, err error) { return stat(name) }