From 9417b7dc510296c096f234e2f340dad5a6faf627 Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Mon, 28 Oct 2024 19:41:30 +0300 Subject: [PATCH] aghos: imp doc --- internal/aghos/permission.go | 6 ++++++ 1 file changed, 6 insertions(+) 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) }