Mark hardlinks that lack any other interesting filetype information

with an 'h'.
This commit is contained in:
kientzle 2008-06-15 05:14:01 +00:00
parent baa22947a2
commit 232c7b7d92

View File

@ -57,6 +57,11 @@ archive_entry_strmode(struct archive_entry *entry)
case AE_IFLNK: bp[0] = 'l'; break;
case AE_IFSOCK: bp[0] = 's'; break;
case AE_IFIFO: bp[0] = 'p'; break;
default:
if (archive_entry_hardlink(entry) != NULL) {
bp[0] = 'h';
break;
}
}
for (i = 0; i < 9; i++)