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

This commit is contained in:
Zhaofeng Li committed 2025-05-16 11:35:36 -06:00
1 parent 428167e750
commit 00d559e4b9
1 file changed
+2
+2
View File
@@ -755,6 +755,8 @@ main(int argc, char **argv)
bsdtar->strip_components = (int)l;
break;
case 'T': /* GNU tar */
if (bsdtar->names_from_file)
lafe_errc(1, 0, "Multiple --files-from/-T options are not supported");
bsdtar->names_from_file = bsdtar->argument;
break;
case 't': /* SUSv2 */