From 7c063833e01930b4b298a59363b783ab32cc0e41 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 17 Mar 2025 17:10:03 +0900 Subject: internal/sys: wrap getuid/getgid Signed-off-by: Ophestra --- internal/sys/std.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/sys/std.go') 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) } -- cgit v1.3.1