aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app
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/app
parentaf3619d440d2d9c5bc0340653e4dd7cf98275e4a (diff)
internal/sys: wrap getuid/getgid
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app')
-rw-r--r--internal/app/app_stub_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/app/app_stub_test.go b/internal/app/app_stub_test.go
index 262055fe..be496177 100644
--- a/internal/app/app_stub_test.go
+++ b/internal/app/app_stub_test.go
@@ -17,7 +17,8 @@ type stubNixOS struct {
usernameErr map[string]error
}
-func (s *stubNixOS) Geteuid() int { return 1971 }
+func (s *stubNixOS) Getuid() int { return 1971 }
+func (s *stubNixOS) Getgid() int { return 100 }
func (s *stubNixOS) TempDir() string { return "/tmp" }
func (s *stubNixOS) MustExecutable() string { return "/run/wrappers/bin/fortify" }
func (s *stubNixOS) Exit(code int) { panic("called exit on stub with code " + strconv.Itoa(code)) }