]> Dogcows Code - chaz/tar/commit
tar: imply --xattrs when --xattrs-{inc,exc}lude used
authorPavel Raiskup <praiskup@redhat.com>
Thu, 23 May 2013 09:36:23 +0000 (11:36 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 14 Feb 2014 10:32:34 +0000 (12:32 +0200)
commit8e10d93d01049d4c5c58ebe57da499a3873be9db
tree485079f92912d9ca524498096feab088c29162de
parent3cb4693c653aeb7056d8b7effc195f8cc2ae0a63
tar: imply --xattrs when --xattrs-{inc,exc}lude used

Options --xattrs-include=MASK and --xattrs-exclude=MASK now turn
on the --xattrs option.

Fix also bug in printing in xattrs.c - don't print when option is
negative.

* src/tar.c (set_xattr_option): New static function.
(parse_opt): Call new function when --xatrrs, --xattrs-include or
--xattrs-exclude option is used.
* src/xattrs.c (xattrs_print, xattrs_print_char): Expect positive
values in options.
src/tar.c
src/xattrs.c
This page took 0.022168 seconds and 4 git commands to generate.