From 4246256d781f169b86f76d8654f6df5ffc6ddae6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 10 Oct 2025 01:20:16 +0900 Subject: internal/app: hold config address in state This can be removed eventually as it is barely used. Signed-off-by: Ophestra --- internal/app/sptmpdir.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/app/sptmpdir.go') diff --git a/internal/app/sptmpdir.go b/internal/app/sptmpdir.go index 8f8dd85e..cb49f78a 100644 --- a/internal/app/sptmpdir.go +++ b/internal/app/sptmpdir.go @@ -6,7 +6,6 @@ import ( "hakurei.app/container/bits" "hakurei.app/container/check" "hakurei.app/container/fhs" - "hakurei.app/hst" "hakurei.app/system" "hakurei.app/system/acl" ) @@ -16,7 +15,7 @@ func init() { gob.Register(spTmpdirOp{}) } // spTmpdirOp sets up TMPDIR inside the container. type spTmpdirOp struct{} -func (s spTmpdirOp) toSystem(state *outcomeStateSys, _ *hst.Config) error { +func (s spTmpdirOp) toSystem(state *outcomeStateSys) error { tmpdir, tmpdirInst := s.commonPaths(state.outcomeState) state.sys.Ensure(tmpdir, 0700) state.sys.UpdatePermType(system.User, tmpdir, acl.Execute) -- cgit v1.3.1