mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Make -I and --files-from be synonyms for -T
This commit is contained in:
parent
c397ea6713
commit
fc1f10af70
1 changed files with 4 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ static const struct option tar_longopts[] = {
|
|||
{ "extract", no_argument, NULL, 'x' },
|
||||
{ "fast-read", no_argument, NULL, OPTION_FAST_READ },
|
||||
{ "file", required_argument, NULL, 'f' },
|
||||
{ "files-from", required_argument, NULL, 'T' },
|
||||
{ "format", required_argument, NULL, OPTION_FORMAT },
|
||||
{ "gunzip", no_argument, NULL, 'z' },
|
||||
{ "gzip", no_argument, NULL, 'z' },
|
||||
|
|
@ -273,6 +274,9 @@ main(int argc, char **argv)
|
|||
long_help(bsdtar);
|
||||
exit(0);
|
||||
break;
|
||||
case 'I': /* GNU tar */
|
||||
bsdtar->names_from_file = optarg;
|
||||
break;
|
||||
case OPTION_INCLUDE:
|
||||
if (include(bsdtar, optarg))
|
||||
bsdtar_errc(bsdtar, 1, 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue