diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-30 18:15:56 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-30 18:24:53 +0900 |
| commit | a6600be34ad812ff13c89f45c3cadaac6d994e67 (patch) | |
| tree | 48c8cd6daab8084eb9391c7ee16f2b38f1cf280f /internal/outcome | |
| parent | b5592633f5b980970808fc5be43b0fb4f4d4e784 (diff) | |
all: use filepath
This makes package check portable, and removes nonportable behaviour from package pkg, pipewire, and system. All other packages remain nonportable due to their nature. No latency increase was observed due to this change on amd64 and arm64 linux.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome')
| -rw-r--r-- | internal/outcome/spcontainer.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/outcome/spcontainer.go b/internal/outcome/spcontainer.go index ba529955..0ad1de50 100644 --- a/internal/outcome/spcontainer.go +++ b/internal/outcome/spcontainer.go @@ -5,7 +5,7 @@ import ( "errors" "io/fs" "os" - "path" + "path/filepath" "slices" "strconv" "syscall" @@ -165,9 +165,9 @@ func (s *spFilesystemOp) toSystem(state *outcomeStateSys) error { } for _, pair := range entry.Values { if pair[0] == "path" { - if path.IsAbs(pair[1]) { + if filepath.IsAbs(pair[1]) { // get parent dir of socket - dir := path.Dir(pair[1]) + dir := filepath.Dir(pair[1]) if dir == "." || dir == fhs.Root { state.msg.Verbosef("dbus socket %q is in an unusual location", pair[1]) } |
