From 58ce1347188b94743ea05a1492c53d53d0e4fa91 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 20 Jun 2026 02:42:35 +0900 Subject: internal/outcome: attempt nscd path-hiding if present This avoids creating the mount point on musl setups which accomplishes nothing and can run into permission problems. Signed-off-by: Ophestra --- internal/env/env_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/env/env_test.go') diff --git a/internal/env/env_test.go b/internal/env/env_test.go index 0e5db4a9..cce97da0 100644 --- a/internal/env/env_test.go +++ b/internal/env/env_test.go @@ -2,6 +2,7 @@ package env_test import ( "fmt" + "io/fs" "reflect" "testing" @@ -104,7 +105,9 @@ func TestCopyPaths(t *testing.T) { t.Fatalf("fatalf: %q, want %q", got, tc.fatal) } panic(stub.PanicExit) - }, func() string { return tc.tmp }, func(key string) string { return tc.env[key] }) + }, func() string { return tc.tmp }, func(key string) string { return tc.env[key] }, func(name string) (fs.FileInfo, error) { + return nil, fs.ErrNotExist + }) if tc.fatal != "" { t.Fatalf("copyPaths: expected fatal %q", tc.fatal) -- cgit v1.3.1