diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-20 19:29:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-20 19:29:45 +0900 |
| commit | c6397b941fe0c07795d8fd8615c37268c08082cd (patch) | |
| tree | a85acbeb1e8abb1c9d9f4ced094358acd3123033 /container/initproc.go | |
| parent | d65e5f817aaf173ed5c61a0509de5089ae52e9e9 (diff) | |
container/initproc: check path equivalence by value
Fixes regression introduced while integrating Absolute.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initproc.go')
| -rw-r--r-- | container/initproc.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/container/initproc.go b/container/initproc.go index 150702ad..d3c37535 100644 --- a/container/initproc.go +++ b/container/initproc.go @@ -35,7 +35,8 @@ func (p *MountProcOp) apply(state *setupState) error { func (p *MountProcOp) Is(op Op) bool { vp, ok := op.(*MountProcOp) - return ok && ((p == nil && vp == nil) || p == vp) + return ok && ((p == nil && vp == nil) || + (p.Target != nil && vp.Target != nil && p.Target.Is(vp.Target))) } func (*MountProcOp) prefix() string { return "mounting" } func (p *MountProcOp) String() string { return fmt.Sprintf("proc on %q", p.Target) } |
