summaryrefslogtreecommitdiff
path: root/tar/bsdtar.c
diff options
context:
space:
mode:
authorKevin Locke <kevin@kevinlocke.name>2014-01-14 20:05:40 -0700
committerKevin Locke <kevin@kevinlocke.name>2014-01-14 20:05:40 -0700
commitf52077abe8d0ab1719b77d0e771593c76916609b (patch)
tree41cfb4802363fe673e5635aa1af3ecc461d32e66 /tar/bsdtar.c
parentda3ec55e71887d6b2e79f75e03e49c80650f7f0a (diff)
downloadlibarchive-f52077abe8d0ab1719b77d0e771593c76916609b.tar.gz
Add --ignore-zeros option to bsdtar
This option is an alias for --options read_concatenated_archive introduced for compatibility with GNU tar. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Diffstat (limited to 'tar/bsdtar.c')
-rw-r--r--tar/bsdtar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tar/bsdtar.c b/tar/bsdtar.c
index 888ba70a..205634dd 100644
--- a/tar/bsdtar.c
+++ b/tar/bsdtar.c
@@ -339,6 +339,9 @@ main(int argc, char **argv)
bsdtar->extract_flags |=
ARCHIVE_EXTRACT_HFS_COMPRESSION_FORCED;
break;
+ case OPTION_IGNORE_ZEROS:
+ bsdtar->option_ignore_zeros = 1;
+ break;
case 'I': /* GNU tar */
/*
* TODO: Allow 'names' to come from an archive,