aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/sys/std.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-17 17:10:03 +0900
committerOphestra <cat@gensokyo.uk>2025-03-17 17:10:03 +0900
commit7c063833e01930b4b298a59363b783ab32cc0e41 (patch)
tree2e867242f35f74978905e7165b3b0e092af707ff /internal/sys/std.go
parentaf3619d440d2d9c5bc0340653e4dd7cf98275e4a (diff)
internal/sys: wrap getuid/getgid
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/sys/std.go')
-rw-r--r--internal/sys/std.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/sys/std.go b/internal/sys/std.go
index 132f4c13..5e63396b 100644
--- a/internal/sys/std.go
+++ b/internal/sys/std.go
@@ -31,7 +31,8 @@ type Std struct {
uidMu sync.RWMutex
}
-func (s *Std) Geteuid() int { return os.Geteuid() }
+func (s *Std) Getuid() int { return os.Getuid() }
+func (s *Std) Getgid() int { return os.Getgid() }
func (s *Std) LookupEnv(key string) (string, bool) { return os.LookupEnv(key) }
func (s *Std) TempDir() string { return os.TempDir() }
func (s *Std) LookPath(file string) (string, error) { return exec.LookPath(file) }