diff options
author | Tim Kientzle <kientzle@acm.org> | 2015-01-10 11:55:29 -0800 |
---|---|---|
committer | Tim Kientzle <kientzle@acm.org> | 2015-01-10 11:55:29 -0800 |
commit | 48b288a03347e49f2f9501f040f626f916195de6 (patch) | |
tree | 011905e3c34add197e4a6d70c29791cbbbcad355 /tar/cmdline.c | |
parent | f93e32f4a2e4b67b05d9042346439c169c03a39d (diff) | |
download | libarchive-48b288a03347e49f2f9501f040f626f916195de6.tar.gz |
Issue #131: Implement tar --no-xattr
This option suppresses both archiving and
restoring xattrs. The latter relies on existing
machinery; for the former, I've added a
ARCHIVE_READDISK_NO_XATTR flag to archive_read_disk.
Caveat: I've not implemented any tests for these new features.
Diffstat (limited to 'tar/cmdline.c')
-rw-r--r-- | tar/cmdline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tar/cmdline.c b/tar/cmdline.c index 974b6af8..bb905812 100644 --- a/tar/cmdline.c +++ b/tar/cmdline.c @@ -116,6 +116,7 @@ static const struct bsdtar_option { { "no-recursion", 0, 'n' }, { "no-same-owner", 0, OPTION_NO_SAME_OWNER }, { "no-same-permissions", 0, OPTION_NO_SAME_PERMISSIONS }, + { "no-xattr", 0, OPTION_NO_XATTR }, { "nodump", 0, OPTION_NODUMP }, { "nopreserveHFSCompression",0, OPTION_NOPRESERVE_HFS_COMPRESSION }, { "norecurse", 0, 'n' }, |