Skip to content

bsdtar: Disallow multiple --files-from/-T options#2607

Merged
kientzle merged 1 commit intolibarchive:masterfrom
zhaofengli:disallow-multiple-files-from
May 16, 2025
Merged

bsdtar: Disallow multiple --files-from/-T options#2607
kientzle merged 1 commit intolibarchive:masterfrom
zhaofengli:disallow-multiple-files-from

Conversation

@zhaofengli
Copy link
Copy Markdown
Contributor

When multiple --files-from/-T options are specified, only the last one is handled and the rest are silently discarded. We should implement this, but for now let's fail fast and disallow such invocations.

GNU tar supports multiple --files-from/-T options and they are positional - The ordering affects where the entries are placed in the output. I have done some black-box testing of GNU tar, and will discuss my findings in a separate issue.

@kientzle kientzle merged commit 1b9c075 into libarchive:master May 16, 2025
20 checks passed
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.

2 participants