mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
Mark hardlinks that lack any other interesting filetype information
with an 'h'.
This commit is contained in:
parent
a64ca54afc
commit
693f6cf97c
1 changed files with 5 additions and 0 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue