rpms/tar/devel tar-1.19-null-terminator.patch, NONE, 1.1 tar-1.19-xattrs.patch, 1.5, 1.6 tar.spec, 1.71, 1.72

Ondrej Vasik ovasik at fedoraproject.org
Fri Oct 10 21:31:51 UTC 2008


Author: ovasik

Update of /cvs/extras/rpms/tar/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24496

Modified Files:
	tar-1.19-xattrs.patch tar.spec 
Added Files:
	tar-1.19-null-terminator.patch 
Log Message:
fixed wrong documentation for xattrs/selinux/acl options (#466517), fixed bug with null file terminator and change dirs(upstream)

tar-1.19-null-terminator.patch:

--- NEW FILE tar-1.19-null-terminator.patch ---
diff -urNp tar-1.20-orig/src/names.c tar-1.20/src/names.c
--- tar-1.20-orig/src/names.c	2008-09-24 10:53:41.000000000 +0200
+++ tar-1.20/src/names.c	2008-09-24 10:57:28.000000000 +0200
@@ -289,8 +289,7 @@ static int matching_flags; /* exclude_fn
    static storage and can't be relied upon across two calls.
 
    If CHANGE_DIRS is true, treat any entries of type NELT_CHDIR as
-   the request to change to the given directory.  If filename_terminator
-   is NUL, CHANGE_DIRS is effectively always false.
+   the request to change to the given directory.
 
    Entries of type NELT_FMASK cause updates of the matching_flags
    value. */
@@ -301,9 +300,6 @@ name_next_elt (int change_dirs)
   const char *source;
   char *cursor;
 
-  if (filename_terminator == '\0')
-    change_dirs = 0;
-
   while (name_index != names)
     {
       struct name_elt *ep;

tar-1.19-xattrs.patch:

Index: tar-1.19-xattrs.patch
===================================================================
RCS file: /cvs/extras/rpms/tar/devel/tar-1.19-xattrs.patch,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- tar-1.19-xattrs.patch	29 Aug 2008 16:02:24 -0000	1.5
+++ tar-1.19-xattrs.patch	10 Oct 2008 21:31:20 -0000	1.6
@@ -36,6 +36,74 @@
 diff -up tar-1.17/doc/tar.texi.xattrs tar-1.17/doc/tar.texi
 --- tar-1.17/doc/tar.texi.xattrs	2007-06-08 10:25:19.000000000 +0200
 +++ tar-1.17/doc/tar.texi	2007-12-10 15:31:54.000000000 +0100
+@@ -2345,6 +2345,10 @@ Normally when creating an archive, @comm
+ @samp{/} from member names.  This option disables that behavior.
+ @xref{absolute}.
+ 
++ at opsummary{acl}
++ at item --acls
++Causes @command{tar} to store ACL's.  @xref{Attributes}.
++
+ @opsummary{after-date}
+ @item --after-date
+ 
+@@ -2838,6 +2842,10 @@ contents have changed (as opposed to jus
+ also back up files for which any status information has
+ changed).  @xref{after}.
+ 
++ at opsummary{no-acl}
++ at item --no-acls
++Causes @command{tar} not to store and not to extract ACL's.  @xref{Attributes}.
++
+ @opsummary{no-anchored}
+ @item --no-anchored
+ An exclude pattern can match any subsequence of the name's components.
+@@ -2900,11 +2908,21 @@ When extracting an archive, subtract the
+ the permissions specified in the archive.  This is the default behavior
+ for ordinary users.
+ 
++ at opsummary{no-selinux}
++ at item --no-selinux
++Causes @command{tar} not to store and not to extract SELinux security context.
++ at xref{Attributes}.
++
+ @opsummary{no-unquote}
+ @item --no-unquote
+ Treat all input file or member names literally, do not interpret
+ escape sequences.  @xref{input name quoting}.
+ 
++ at opsummary{no-xattrs}
++ at item --no-xattrs
++Causes @command{tar} not to store and not to extract xattrs. This option also
++enables @option{--no-selinux} and @option{--no-acls}.  @xref{Attributes}.
++
+ @opsummary{no-wildcards}
+ @item --no-wildcards
+ Do not use wildcards.
+@@ -3132,6 +3150,11 @@ locations.  Usually @command{tar} determ
+ the archive can be seeked or not.  This option is intended for use
+ in cases when such recognition fails.
+ 
++ at opsummary{selinux}
++ at item --selinux
++Causes @command{tar} to store SElinux security context.  @xref{Attributes}.
++
++
+ @opsummary{show-defaults}
+ @item --show-defaults
+ 
+@@ -3328,6 +3351,11 @@ Used in conjunction with @option{--multi
+ keep track of which volume of a multi-volume archive it is working in
+ @var{file}.  @xref{volno-file}.
+ 
++ at opsummary{xattrs}
++ at item --xattrs
++Causes @command{tar} to store xattrs. This option also enables
++ at option{--selinux} and @option{--acls}.  @xref{Attributes}.
++
+ @opsummary{wildcards}
+ @item --wildcards
+ Use wildcards when matching member names with patterns.
 @@ -7845,6 +7845,8 @@ implementation able to read @samp{ustar}
  most @samp{posix} archives as well, with the only exception that any
  additional information (such as long file names etc.) will in such
@@ -75,7 +143,7 @@
 +This option causes @command{tar} not to store the current ACL in the archive
 +and not to extract any ACL information in an archive.
 +
-+The @option{--acls} option has no equivalent short option name.
++The @option{--no-acls} option has no equivalent short option name.
 +
 + at opindex no-selinux
 + at item --no-selinux
@@ -83,16 +151,16 @@
 +context information in the archive and not to extract any SELinux information in
 +an archive.
 +
-+The @option{--selinux} option has no equivalent short option name.
++The @option{--no-selinux} option has no equivalent short option name.
 +
-+ at opindex xattrs
-+ at item --xattrs
++ at opindex no-xattrs
++ at item --no-xattrs
 +This option causes @command{tar} not to store the current extended attributes in
 +the archive and not to extract any extended attributes in an archive. This
-+option also enables @option{--acls} and @option{--selinux} if
++option also enables @option{--no-acls} and @option{--no-selinux} if
 +they haven't been set already.
 +
-+The @option{--xattrs} option has no equivalent short option name.
++The @option{--no-xattrs} option has no equivalent short option name.
 +
  @end table
  


Index: tar.spec
===================================================================
RCS file: /cvs/extras/rpms/tar/devel/tar.spec,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- tar.spec	29 Aug 2008 16:02:24 -0000	1.71
+++ tar.spec	10 Oct 2008 21:31:21 -0000	1.72
@@ -2,7 +2,7 @@
 Name: tar
 Epoch: 2
 Version: 1.20
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv3+
 Group: Applications/Archiving
 URL: http://www.gnu.org/software/tar/
@@ -14,6 +14,7 @@
 Patch3: tar-1.19-xattrs.patch
 Patch4: tar-1.19-xattrs-conf.patch
 Patch5: tar-1.17-wildcards.patch
+Patch6: tar-1.19-null-terminator.patch
 Prereq: info
 BuildRequires: autoconf automake gzip texinfo gettext libacl-devel libselinux-devel gawk
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -39,6 +40,7 @@
 %patch3 -p1 -b .xattrs
 %patch4 -p1 -b .xattrs-conf
 %patch5 -p1 -b .wildcards
+%patch6 -p1 -b .nullterm
 
 %build
 %configure --bindir=/bin --libexecdir=/sbin
@@ -89,6 +91,11 @@
 %{_infodir}/tar.info*
 
 %changelog
+* Fri Oct 10 2008 Ondrej Vasik <ovasik at redhat.com> 2:1.20-3
+- Fixed wrong documentation for xattrs options (#466517)
+- fixed bug with null file terminator and change dirs
+  (upstream)
+
 * Fri Aug 29 2008 Ondrej Vasik <ovasik at redhat.com> 2:1.20-2
 - patch fuzz clean up
 




More information about the scm-commits mailing list