From d65e5f817aaf173ed5c61a0509de5089ae52e9e9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 20 Aug 2025 19:19:27 +0900 Subject: container/initplace: check path equivalence by value Fixes regression introduced while integrating Absolute. Signed-off-by: Ophestra --- container/initplace.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'container/initplace.go') diff --git a/container/initplace.go b/container/initplace.go index ce7ad86b..91146948 100644 --- a/container/initplace.go +++ b/container/initplace.go @@ -4,7 +4,6 @@ import ( "encoding/gob" "fmt" "os" - "slices" . "syscall" ) @@ -73,7 +72,8 @@ func (t *TmpfileOp) apply(state *setupState) error { func (t *TmpfileOp) Is(op Op) bool { vt, ok := op.(*TmpfileOp) - return ok && t.Path == vt.Path && slices.Equal(t.Data, vt.Data) + return ok && t.Path != nil && vt.Path != nil && t.Path.Is(vt.Path) && + string(t.Data) == string(vt.Data) } func (*TmpfileOp) prefix() string { return "placing" } func (t *TmpfileOp) String() string { -- cgit v1.3.1