diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-01-15 10:07:51 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-01-15 10:13:18 +0900 |
| commit | 562f5ed7971603a4e4e3315a7fe4188153bfc205 (patch) | |
| tree | 2a751ea418e305c97bcef5625b5d4b8633b74834 /internal/app/app_stub_test.go | |
| parent | db03565614821695efdb283a81a4733e6d321670 (diff) | |
fst: hide sockets exposed via Filesystem
This is mostly useful for permissive defaults.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app_stub_test.go')
| -rw-r--r-- | internal/app/app_stub_test.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/app/app_stub_test.go b/internal/app/app_stub_test.go index 9ab09197..4d2e83e9 100644 --- a/internal/app/app_stub_test.go +++ b/internal/app/app_stub_test.go @@ -2,7 +2,6 @@ package app_test import ( "fmt" - "io" "io/fs" "os/user" "strconv" @@ -128,12 +127,12 @@ func (s *stubNixOS) Open(name string) (fs.File, error) { } } -func (s *stubNixOS) Exit(code int) { - panic("called exit on stub with code " + strconv.Itoa(code)) +func (s *stubNixOS) EvalSymlinks(path string) (string, error) { + return path, nil } -func (s *stubNixOS) Stdout() io.Writer { - panic("requested stdout") +func (s *stubNixOS) Exit(code int) { + panic("called exit on stub with code " + strconv.Itoa(code)) } func (s *stubNixOS) Paths() linux.Paths { |
