diff options
author | Tim Kientzle <kientzle@FreeBSD.org> | 2004-06-15 05:55:41 +0000 |
---|---|---|
committer | Tim Kientzle <kientzle@FreeBSD.org> | 2004-06-15 05:55:41 +0000 |
commit | b7ec47bb9f5be3abe77fd22cb15624839679dcfb (patch) | |
tree | f5b7f5035df247695f901d5407f18939fb78784f /usr.bin/tar/bsdtar.c | |
parent | 730262cdf704a2a69dc63ab1e38bea664118a7f1 (diff) |
Notes
Diffstat (limited to 'usr.bin/tar/bsdtar.c')
-rw-r--r-- | usr.bin/tar/bsdtar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/tar/bsdtar.c b/usr.bin/tar/bsdtar.c index f933cea343291..3221348ceffa8 100644 --- a/usr.bin/tar/bsdtar.c +++ b/usr.bin/tar/bsdtar.c @@ -90,6 +90,7 @@ const struct option tar_longopts[] = { { "dereference", no_argument, NULL, 'L' }, { "directory", required_argument, NULL, 'C' }, { "exclude", required_argument, NULL, OPTION_EXCLUDE }, + { "exclude-from", required_argument, NULL, 'X' }, { "extract", no_argument, NULL, 'x' }, { "fast-read", no_argument, NULL, OPTION_FAST_READ }, { "file", required_argument, NULL, 'f' }, @@ -329,6 +330,9 @@ main(int argc, char **argv) case 'w': /* SUSv2 */ bsdtar->option_interactive = 1; break; + case 'X': /* GNU tar */ + exclude_from_file(bsdtar, optarg); + break; case 'x': /* SUSv2 */ if (mode != '\0') bsdtar_errc(bsdtar, 1, 0, |