From 693f6cf97cef04bf76f98b0f189f329ba7811374 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Sun, 15 Jun 2008 05:14:01 +0000 Subject: [PATCH] Mark hardlinks that lack any other interesting filetype information with an 'h'. --- lib/libarchive/archive_entry_strmode.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libarchive/archive_entry_strmode.c b/lib/libarchive/archive_entry_strmode.c index 301f7b614ff..8d7006a054f 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++)