diff options
-rw-r--r-- | usr.sbin/mtree/compare.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c index 4168121..3c6f015 100644 --- a/usr.sbin/mtree/compare.c +++ b/usr.sbin/mtree/compare.c @@ -298,7 +298,8 @@ typeerr: LABEL; } #endif /* RMD160 */ - if (s->flags & F_SLINK && strcmp(cp = rlink(name), s->slink)) { + if (s->flags & F_SLINK && + strcmp(cp = rlink(p->fts_accpath), s->slink)) { LABEL; (void)printf("%slink ref (%s, %s)\n", tab, cp, s->slink); } |