diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-06-15 05:14:01 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-06-15 05:14:01 +0000 |
commit | 232c7b7d927774586ff5f3e4baed4d56fc617e0b (patch) | |
tree | 9ad5509215d9f7e6bfbd03cb4066d9332f161660 | |
parent | baa22947a2681ab11c78709594ef9e9cafb036a5 (diff) | |
download | FreeBSD-src-232c7b7d927774586ff5f3e4baed4d56fc617e0b.zip FreeBSD-src-232c7b7d927774586ff5f3e4baed4d56fc617e0b.tar.gz |
Mark hardlinks that lack any other interesting filetype information
with an 'h'.
-rw-r--r-- | lib/libarchive/archive_entry_strmode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libarchive/archive_entry_strmode.c b/lib/libarchive/archive_entry_strmode.c index 301f7b6..8d7006a 100644 --- a/lib/libarchive/archive_entry_strmode.c +++ b/lib/libarchive/archive_entry_strmode.c @@ -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++) |