aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/spcontainer.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-12 03:58:53 +0900
committerOphestra <cat@gensokyo.uk>2025-10-12 03:58:53 +0900
commitdb7051a36814a5c9e02e22c2e8d1df42c5f4b8f0 (patch)
tree1ca0fcfe061d1b09c3a423dabbc4c535ba8028d9 /internal/app/spcontainer.go
parent36f312b3ba45f1bec6341b4f66a1f2e89971bc51 (diff)
internal/app/spcontainer: check fs init behaviour
This covers every statement. Some of them are unreachable unless the kernel returns garbage. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/spcontainer.go')
-rw-r--r--internal/app/spcontainer.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/internal/app/spcontainer.go b/internal/app/spcontainer.go
index 247b7983..7475a1f1 100644
--- a/internal/app/spcontainer.go
+++ b/internal/app/spcontainer.go
@@ -252,14 +252,7 @@ func (s *spFilesystemOp) toSystem(state *outcomeStateSys) error {
for i, ok := range hidePathMatch {
if ok {
if a, err := check.NewAbs(hidePaths[i]); err != nil {
- var absoluteError *check.AbsoluteError
- if !errors.As(err, &absoluteError) {
- return newWithMessageError(absoluteError.Error(), absoluteError)
- }
- if absoluteError == nil {
- return newWithMessage("impossible path checking state reached")
- }
- return newWithMessage("invalid path hiding candidate " + strconv.Quote(absoluteError.Pathname))
+ return newWithMessage("invalid path hiding candidate " + strconv.Quote(hidePaths[i]))
} else {
s.HidePaths = append(s.HidePaths, a)
}