Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ticket #48224 - redux - logconv.pl should handle *.tar.xz, *.txz, *.x…
…z log files https://fedorahosted.org/389/ticket/48224 Reviewed by: nhosoi, mreynolds (Thanks!) Branch: 389-ds-base-1.3.4 Fix Description: Some platforms have no IO::Uncompress::UnXz, so have to pipe out to the 'xz' command for uncompression. Doing the 'xz' pipe will not work with compressed xz files in tar archives, so issue an appropriate error. The tar archive file handling was wrong - have to wrap the data in a filehandle before passing to uncompress. Added a lot of error checking - trying to uncompress plain text files, trying to untar non-tar archives, trying to untar and uncompress a tar file that is not compressed, other weird stuff like specifying a .bz2 extension on a file compressed with .xz. This will also need a spec file change: Requires: perl-IO-Compress Requires: perl-DB_File Requires: perl-Archive-Tar Requires: xz Platforms tested: Fedora 21, RHEL 7.2 candidate Flag Day: no Doc impact: no (cherry picked from commit ae5b62f)
- Loading branch information
Showing
1 changed file
with
57 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters