diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2000-09-13 12:54:33 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2000-09-13 12:54:33 +0000 |
commit | 35614d23c575ce60a0f443beb0e8dd47d93dbccc (patch) | |
tree | b0404cae7316542cd2ba920cf956d01e6123baae /usr.sbin/mtree/compare.c | |
parent | 4df37ee8ee9fc3f04731ac01ebb6867451b17cbe (diff) | |
download | FreeBSD-src-35614d23c575ce60a0f443beb0e8dd47d93dbccc.zip FreeBSD-src-35614d23c575ce60a0f443beb0e8dd47d93dbccc.tar.gz |
Pass a useful pathname to rlink(). Many thanks to the PR originator
for all the debugging work.
PR: 21017
Reported by: Gerhard Sittig <Gerhard.Sittig@gmx.net>
Submitted by: Jos Backus <josb@cncdsl.com>,
Diffstat (limited to 'usr.sbin/mtree/compare.c')
-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); } |