summaryrefslogtreecommitdiff
path: root/tar/cmdline.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@acm.org>2015-01-10 11:55:29 -0800
committerTim Kientzle <kientzle@acm.org>2015-01-10 11:55:29 -0800
commit48b288a03347e49f2f9501f040f626f916195de6 (patch)
tree011905e3c34add197e4a6d70c29791cbbbcad355 /tar/cmdline.c
parentf93e32f4a2e4b67b05d9042346439c169c03a39d (diff)
downloadlibarchive-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.c1
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' },