- Issued:
- 2010-03-30
- Updated:
- 2010-03-30
RHBA-2010:0224 - Bug Fix Advisory
Synopsis
tar bug fix and enhancement update
Type/Severity
Bug Fix Advisory
Red Hat Insights patch analysis
Identify and remediate systems affected by this advisory.
Topic
An updated tar package that fixes several bugs and adds various
enhancements is now available.
Description
The GNU tar program saves many files together in one archive and can
restore individual files (or all of the files) from that archive.
This updated tar package provides fixes for the following bugs:
- using the tar command's "-f [hostname]:[file]" option to specify a host
on which to carry out operations on an archive failed with a "Cannot open:
Input/output error" message. This error occured when the rsh (remote shell)
program was not available on the system on which the "tar" command was
built. With this update, the tar package's spec file now lists the rsh
package as a build dependency. Supplying the "-f [hostname]:[file]" option
now works as expected. (BZ#294661)
- the tar(1) man page incorrectly stated that the "--occurrence=N" option
causes tar to process the first N occurrences of each file in the archive.
The man page has been updated to reflect the actual behavior, which is to
process only the Nth occurrence of each file in the archive. (BZ#429522)
- extracting a tar archive that had been created using the "--xattrs" flag,
which saves extended attribute information to the file, resulted in tar
displaying "Warning: Cannot acl_from_text: Invalid argument" error messages
for many extracted files. This was caused by an off-by-one coding error,
and has been fixed in this update so that extended attributes are restored
correctly from archive files. (BZ#472553)
- the tar command's "--keep-newer-files" flag informs tar not to replace
existing files that are newer than their archive copies. When restoring
from an archive while using this option, tar incorrectly removed older
files. With this update, tar does not remove older files when the
"--keep-newer-files" flag is used to restore an archive. (BZ#495686)
- extracting files from a tar archive when using the "--no-wildcards" flag
to disable wildcard character interpretation did not work as expected:
wildcard characters such as '*', '[' and '?' still affected file name
matches. With this update, the "--no-wildcards" flag correctly disables
wildcard syntax so that file names are matched literally. (BZ#510714)
- creating a tar archive which contained one or more directories with
default extended attributes set, and then extracting that archive using the
"--xattrs" flag on an Access Control List-enabled file system, did not
result in the restoration of those directories' extended attributes. This
has been fixed in this update so that directories' extended attributes are
retained as expected when the tar archive is created and extracted
appropriately. (BZ#512097)
- installing the tar package with the "rpm -i --excludedocs" command
resulted in "install-info: No such file or directory" error messages. With
this update, installing tar while excluding files marked as documentation
completes successfully, and without error messages. (BZ#530955)
- attempting to extract a file smaller than 512 bytes from a tar archive
resulted in an exit code of 0, indicating success, even though such files
are not valid archives. With this update, tar returns an exit code of 2 and
displays an error message when attempting to extract too-small files.
(BZ#544427)
In addition, this updated package provides the following enhancements:
- previously, tar's support for preserving metadata information on files
and directories suffered from several limitations: the value of any
extended attribute was limited to 5 bytes, and it was not possible to
preserve SELinux context and extended attribute information on symbolic
links. This update allows both kinds of information to be preserved for
symlinks, and removes the 5-byte limit on extended attributes values.
(BZ#518208)
- the gtar(1) man page is newly included in this updated package.
(BZ#530956)
Users are advised to upgrade to this updated tar package, which resolves
these issues and adds these enhancements.
Solution
Before applying this update, make sure that all previously-released
errata relevant to your system have been applied.
This update is available via Red Hat Network. Details on how to use
the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/docs/DOC-11259
Affected Products
- Red Hat Enterprise Linux Server 5 x86_64
- Red Hat Enterprise Linux Server 5 ia64
- Red Hat Enterprise Linux Server 5 i386
- Red Hat Enterprise Linux Workstation 5 x86_64
- Red Hat Enterprise Linux Workstation 5 i386
- Red Hat Enterprise Linux Desktop 5 x86_64
- Red Hat Enterprise Linux Desktop 5 i386
- Red Hat Enterprise Linux for IBM z Systems 5 s390x
- Red Hat Enterprise Linux for Power, big endian 5 ppc
- Red Hat Enterprise Linux Server from RHUI 5 x86_64
- Red Hat Enterprise Linux Server from RHUI 5 i386
Fixes
- BZ - 294661 - tar -f "hostname:tar_device" usage is broken
- BZ - 429522 - Meaning of --occurrence wrong in man page
- BZ - 472553 - Error Message: "tar: <path_to_file>: Warning: Cannot acl_from_text: Invalid argument" when extracting from tar-archive.
- BZ - 495686 - tar --keep-newer-files removes the old files
- BZ - 510714 - tar does not interpret --no-wildcards option right
- BZ - 530955 - Errors installing tar-1.22-2.fc11.i586 with --excludedocs
- BZ - 530956 - Missing man-pages
- BZ - 544427 - tar x returns 0 when given bogus input
CVEs
(none)
References
(none)
Red Hat Enterprise Linux Server 5
SRPM | |
---|---|
tar-1.15.1-30.el5.src.rpm | SHA-256: 68750d5b66093a19ddb59f6a34604c4b97331a10e23212d7c04b571aee5428f9 |
x86_64 | |
tar-1.15.1-30.el5.x86_64.rpm | SHA-256: 5fb6a47508cc3fc714a08b1f65c0b1af24489d9ac974b70b91b9d6c68b3a2a6e |
ia64 | |
tar-1.15.1-30.el5.ia64.rpm | SHA-256: 61b61776fe5e57d6a19402b67d87ff005faafd000916b589d6329a63bc390f03 |
i386 | |
tar-1.15.1-30.el5.i386.rpm | SHA-256: dcdc8d94bb0689458a90bd45d245fef7037148b6bb13a257e959172a80477a8c |
Red Hat Enterprise Linux Workstation 5
SRPM | |
---|---|
tar-1.15.1-30.el5.src.rpm | SHA-256: 68750d5b66093a19ddb59f6a34604c4b97331a10e23212d7c04b571aee5428f9 |
x86_64 | |
tar-1.15.1-30.el5.x86_64.rpm | SHA-256: 5fb6a47508cc3fc714a08b1f65c0b1af24489d9ac974b70b91b9d6c68b3a2a6e |
i386 | |
tar-1.15.1-30.el5.i386.rpm | SHA-256: dcdc8d94bb0689458a90bd45d245fef7037148b6bb13a257e959172a80477a8c |
Red Hat Enterprise Linux Desktop 5
SRPM | |
---|---|
tar-1.15.1-30.el5.src.rpm | SHA-256: 68750d5b66093a19ddb59f6a34604c4b97331a10e23212d7c04b571aee5428f9 |
x86_64 | |
tar-1.15.1-30.el5.x86_64.rpm | SHA-256: 5fb6a47508cc3fc714a08b1f65c0b1af24489d9ac974b70b91b9d6c68b3a2a6e |
i386 | |
tar-1.15.1-30.el5.i386.rpm | SHA-256: dcdc8d94bb0689458a90bd45d245fef7037148b6bb13a257e959172a80477a8c |
Red Hat Enterprise Linux for IBM z Systems 5
SRPM | |
---|---|
tar-1.15.1-30.el5.src.rpm | SHA-256: 68750d5b66093a19ddb59f6a34604c4b97331a10e23212d7c04b571aee5428f9 |
s390x | |
tar-1.15.1-30.el5.s390x.rpm | SHA-256: 5f299b7cb6f74d941fc95c2b7562360435b9a7ce84ce80ba1c6a9b0c94908665 |
Red Hat Enterprise Linux for Power, big endian 5
SRPM | |
---|---|
tar-1.15.1-30.el5.src.rpm | SHA-256: 68750d5b66093a19ddb59f6a34604c4b97331a10e23212d7c04b571aee5428f9 |
ppc | |
tar-1.15.1-30.el5.ppc.rpm | SHA-256: aa3bbc1baebeaa203679abf4e454ae92fcb624e57c2231833552721b0d7a3670 |
Red Hat Enterprise Linux Server from RHUI 5
SRPM | |
---|---|
tar-1.15.1-30.el5.src.rpm | SHA-256: 68750d5b66093a19ddb59f6a34604c4b97331a10e23212d7c04b571aee5428f9 |
x86_64 | |
tar-1.15.1-30.el5.x86_64.rpm | SHA-256: 5fb6a47508cc3fc714a08b1f65c0b1af24489d9ac974b70b91b9d6c68b3a2a6e |
i386 | |
tar-1.15.1-30.el5.i386.rpm | SHA-256: dcdc8d94bb0689458a90bd45d245fef7037148b6bb13a257e959172a80477a8c |
The Red Hat security contact is secalert@redhat.com. More contact details at https://access.redhat.com/security/team/contact/.