Skip to content

Add Unknown value to Entry::FileType#6

Open
17dec wants to merge 1 commit intofnichol:masterfrom
17dec:unknown-filetype
Open

Add Unknown value to Entry::FileType#6
17dec wants to merge 1 commit intofnichol:masterfrom
17dec:unknown-filetype

Conversation

@17dec
Copy link

@17dec 17dec commented Oct 16, 2016

To handle the case where archive_entry_filetype() returns 0, which it does in the case of hardlinks in a tar archive.

From reading the libarchive source, it seems that archive_entry_set_filetype() also accepts 0; so this type, while undocumented, seems to be supported.

archive_entry_filetype() can return 0. It does this for hard links in a
GNU tar-created archive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant