Give a more useful diagnostic when an extraneous hard link to a

directory is encountered. This includes the full path of the
directory that will be removed if the user answers "y" to the
"REMOVE?" question.

PR:		bin/226851
Submitted by:	KOIE Hide <hide@koie.org>
MFC after:	1 week
This commit is contained in:
Ian Dowse 2001-11-17 22:46:36 +00:00
parent ca8b9ed373
commit 25211b35bf

View File

@ -442,7 +442,9 @@ pass2check(idesc)
getpathname(pathbuf, idesc->id_number,
idesc->id_number);
getpathname(namebuf, dirp->d_ino, dirp->d_ino);
pwarn("%s %s %s\n", pathbuf,
pwarn("%s%s%s %s %s\n", pathbuf,
(strcmp(pathbuf, "/") == 0 ? "" : "/"),
dirp->d_name,
"IS AN EXTRANEOUS HARD LINK TO DIRECTORY",
namebuf);
if (cursnapshot != 0)