bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Suprising behavior of extract with --xattrs


From: Brian Murray
Subject: Re: [Bug-tar] Suprising behavior of extract with --xattrs
Date: Wed, 12 Jun 2019 13:01:13 -0700
User-agent: Mutt/1.9.4 (2018-02-28)

On Wed, Jun 12, 2019 at 03:21:24PM -0400, Nathan Stratton Treadway wrote:
> On Wed, Jun 12, 2019 at 10:32:22 -0700, Brian Murray wrote:
> > diff --git a/src/xattrs.c b/src/xattrs.c
> > index df65460..ed8d4e5 100644
> > --- a/src/xattrs.c
> > +++ b/src/xattrs.c
> > @@ -636,6 +636,9 @@ xattrs_matches_mask (const char *kw, struct 
> > xattrs_mask_map *mm)
> >    return false;
> >  }
> >  
> > +/* during extraction xattrs are checked against the user supplied
> > +   include/exclude mask but if no mask is given then only the user.*
> > +   domain is included as it may not be compatible across platforms. */
> 
> Should this last line be something like "...included, as other domains
> may be incompatible across platforms and should not be applied without an
> explicit user request." ?

Thanks, I clarified that other domains may be incompatible.

> 
> On Wed, Jun 12, 2019 at 11:15:05 -0700, Brian Murray wrote:
> > diff --git a/doc/tar.1 b/doc/tar.1
> > index 18136cf..1bb9d30 100644
> > --- a/doc/tar.1
> > +++ b/doc/tar.1
> > @@ -604,7 +604,9 @@ Enable SELinux context support.
> >  Disable SELinux context support.
> >  .TP
> >  .B \-\-xattrs
> > -Enable extended attributes support.
> > +Enable extended attributes support. When creating an archive
> > +\fB\-\-xattrs\-include\fR defaults to \fB'*'\fR and when extracing an
> > +archive \fB\-\-xattrs\-include\fR defaults to \fB'^user.*'\fR.
> 
> s/extracing/extracting/

Fixed.

--
Brian Murray

Attachment: xattrs-man.patch
Description: Text Data

Attachment: xattrs-code.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]