diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-20 19:19:27 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-20 19:19:27 +0900 |
| commit | d65e5f817aaf173ed5c61a0509de5089ae52e9e9 (patch) | |
| tree | b13db8395490028bc6e7f103e26444c3e1cd0b3c /container/initplace.go | |
| parent | 696e5938989dc5652dbf56686c289dd6994c9d4c (diff) | |
container/initplace: check path equivalence by value
Fixes regression introduced while integrating Absolute.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initplace.go')
| -rw-r--r-- | container/initplace.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |
