Bug 963671

Summary: tar: option '--xattr' is ambiguous
Product: Red Hat Enterprise Linux 7 Reporter: Petr Sklenar <psklenar>
Component: tarAssignee: Pavel Raiskup <praiskup>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0Keywords: Regression
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-07 07:03:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Sklenar 2013-05-16 11:07:12 UTC
Description of problem:
option '--xattr' is not working

Version-Release number of selected component (if applicable):
tar-1.26-21.el7

How reproducible:
always

Steps to Reproduce:
1. cd /;tar cvf name.tar /tmp/
2. tar --xattr -xf name.tar
  
Actual results:
tar is not untar
tar: option '--xattr' is ambiguous
Try `tar --help' or `tar --usage' for more information.

Expected results:
tar is untar

Additional info:
tar-1.26-12.el7.x86_64: works
tar-1.26-21.el7.ppc64: this bug

Comment 4 Pavel Raiskup 2013-05-16 11:24:28 UTC
Well.  In newest tar are new options --xattrs-include/--xattrs-exclude, which
clashes with --xattrs in that way.  These options were not in RHEL6.

I'm not sure if the --xattr option was ever supported in RHEL - most probably
not.  The bug #963671 seems to be just about memory leak, it is not testing
whether the '--xattr' works.  I would simply fix that test.

Pavel

Comment 5 Pavel Raiskup 2013-05-16 11:56:05 UTC
> not.  The bug #963671 seems to be just about memory leak, it is not testing

Ohh .. I mean the bug #518079 of course.

----

The xattrs-include/xattrs-exclude was added upstream by this commit:

http://git.savannah.gnu.org/cgit/tar.git/commit/?id=696338043e52f44

Pavel

Comment 6 Pavel Raiskup 2013-06-07 07:03:40 UTC
With Petr's ACK: this is expected behavior and unlikely to be changed (--xattr
option was never really supported) - so not a bug in RHEL7 tar and our tests
will be changed.  Thanks for looking at it!  Pavel