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:
parent
ca8b9ed373
commit
25211b35bf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user