summaryrefslogtreecommitdiff
path: root/tar/cmdline.c
diff options
context:
space:
mode:
authorMartin Matuška <martin@matuska.org>2021-11-21 11:32:19 +0100
committerGitHub <noreply@github.com>2021-11-21 11:32:19 +0100
commit4f598ce28aa370e945103eb9a17f03c7c820c1e8 (patch)
treeb236dccabee9d88383dc934e7e719105d84095fe /tar/cmdline.c
parent6795d0255584c863d7f5ceb3038e53c9ad3f135a (diff)
parent1833a6c4d40a57f5782ac2f96b375923c51024ea (diff)
downloadlibarchive-4f598ce28aa370e945103eb9a17f03c7c820c1e8.tar.gz
Merge pull request #1614 from diabonas/add-no-read-sparse
Add ARCHIVE_READDISK_NO_SPARSE/--no-read-sparse to improve reproducibility of generated archives
Diffstat (limited to 'tar/cmdline.c')
-rw-r--r--tar/cmdline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tar/cmdline.c b/tar/cmdline.c
index b80937ff..d49e5b0d 100644
--- a/tar/cmdline.c
+++ b/tar/cmdline.c
@@ -122,6 +122,7 @@ static const struct bsdtar_option {
{ "no-acls", 0, OPTION_NO_ACLS },
{ "no-fflags", 0, OPTION_NO_FFLAGS },
{ "no-mac-metadata", 0, OPTION_NO_MAC_METADATA },
+ { "no-read-sparse", 0, OPTION_NO_READ_SPARSE },
{ "no-recursion", 0, 'n' },
{ "no-safe-writes", 0, OPTION_NO_SAFE_WRITES },
{ "no-same-owner", 0, OPTION_NO_SAME_OWNER },
@@ -145,6 +146,7 @@ static const struct bsdtar_option {
{ "posix", 0, OPTION_POSIX },
{ "preserve-permissions", 0, 'p' },
{ "read-full-blocks", 0, 'B' },
+ { "read-sparse", 0, OPTION_READ_SPARSE },
{ "safe-writes", 0, OPTION_SAFE_WRITES },
{ "same-owner", 0, OPTION_SAME_OWNER },
{ "same-permissions", 0, 'p' },