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>,
This commit is contained in:
Sheldon Hearn 2000-09-13 12:54:33 +00:00
parent 9c15b3c143
commit 82cb0dd6de
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}