diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-14 07:02:14 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-14 07:02:14 +0900 |
| commit | f95e0a7568e5115dd536f19834083bff392458b8 (patch) | |
| tree | 535346062d66aac889120a511453f9d68c902263 /internal/app/spfinal.go | |
| parent | 4c647add0db06cc7a28571aee7502737f0d66b27 (diff) | |
hst/config: hold acl struct by value
Doc comments are also reworded for clarity.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/spfinal.go')
| -rw-r--r-- | internal/app/spfinal.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/app/spfinal.go b/internal/app/spfinal.go index f67d255f..7e444168 100644 --- a/internal/app/spfinal.go +++ b/internal/app/spfinal.go @@ -21,8 +21,9 @@ type spFinalOp struct{} func (s spFinalOp) toSystem(state *outcomeStateSys) error { // append ExtraPerms last - for _, p := range state.extraPerms { - if p == nil || p.Path == nil { + for i := range state.extraPerms { + p := &state.extraPerms[i] + if p.Path == nil { continue } |
