diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-10 01:20:16 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-10 01:21:01 +0900 |
| commit | 4246256d781f169b86f76d8654f6df5ffc6ddae6 (patch) | |
| tree | 71f05518ff960873661788c3dcf581eed314322b /internal/app/spfinal.go | |
| parent | a941ac025f9f3a942cab04a6f2447e4cab0e616c (diff) | |
internal/app: hold config address in state
This can be removed eventually as it is barely used.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/spfinal.go')
| -rw-r--r-- | internal/app/spfinal.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/app/spfinal.go b/internal/app/spfinal.go index b64d0806..8760d090 100644 --- a/internal/app/spfinal.go +++ b/internal/app/spfinal.go @@ -19,9 +19,9 @@ func init() { gob.Register(spFinal{}) } // It exists to avoid reordering the expected entries in test cases. type spFinal struct{} -func (s spFinal) toSystem(state *outcomeStateSys, config *hst.Config) error { +func (s spFinal) toSystem(state *outcomeStateSys) error { // append ExtraPerms last - for _, p := range config.ExtraPerms { + for _, p := range state.config.ExtraPerms { if p == nil || p.Path == nil { continue } |
