diff options
Diffstat (limited to 'system/link.go')
| -rw-r--r-- | system/link.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/link.go b/system/link.go index 4ba74ff9..544443e9 100644 --- a/system/link.go +++ b/system/link.go @@ -28,7 +28,7 @@ func (l *HardlinkOp) apply(*I) error { } func (l *HardlinkOp) revert(_ *I, ec *Criteria) error { - if ec.hasType(l) { + if ec.hasType(l.Type()) { msg.Verbosef("removing hard link %q", l.dst) return newOpError("hardlink", os.Remove(l.dst), true) } else { |
