diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-11-17 22:46:36 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-11-17 22:46:36 +0000 |
commit | 8070b3bf8fcd0a3b1c92b0a8f0b76bd1c9961b0a (patch) | |
tree | 0f12fb71b85fef4e1c0207bc77b733a90a8c9d3a /sbin | |
parent | 4e03d04c96ed61163cc95c3597b521fa9d158b2c (diff) | |
download | FreeBSD-src-8070b3bf8fcd0a3b1c92b0a8f0b76bd1c9961b0a.zip FreeBSD-src-8070b3bf8fcd0a3b1c92b0a8f0b76bd1c9961b0a.tar.gz |
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fsck_ffs/pass2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/pass2.c b/sbin/fsck_ffs/pass2.c index f7f7bcd..6cb4014 100644 --- a/sbin/fsck_ffs/pass2.c +++ b/sbin/fsck_ffs/pass2.c @@ -442,7 +442,9 @@ again: 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) |