lrzuntar does not accept the -t flag

Bug #930438 reported by Todd A. Jacobs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lrzip (Ubuntu)
New
Undecided
Unassigned

Bug Description

lrzuntar does not accept the -t flag. This may be a documentation rather than a technical issue, as the man page says it is expecting a directory rather than a file, but please note that it does in fact accept a .tar.lrz file as an argument.

The expected behavior is that one should be able to test both the integrity of the .lrz archive, as well as the integrity of the compressed tarball inside it. This is not currently possible with the existing arguments and flags. To consistently recreate this problem:

# Create a lzip-compressed tarball.
cd /tmp
mkdir foo
touch bar baz
lrztar foo

# Fail to test the archive and/or the tarball
$ lrzuntar -t foo.tar.lrz
lrztar: invalid option for lrztar: t

There is an undocumented work-around, though, that seems to work reliably in casual testing: uncompressing the archive to standard output, and piping the unarchived tarball into tar on standard input for testing.

# Test the archive, then test the tarball through a pipe.
$ lrunzip foo.tar.lrz | tar --list
Decompressing...
100% 10240.00 / 10240.00
Average DeCompression Speed: 0.000MB/s
[OK] - 10240 bytes
Total time: 00:00:00.02
foo/
foo/baz
foo/bar

To recap the problem and recommended solutions:
    * lrzuntar should handle the -t flag, since the man page claims that it supports all lrzip options.
    * The man page should indicate that lrzuntar handles .tar.lrz archives, not just directories, as arguments.
    * The necessity to pipe the archive contents to a third-party utility in order to test the integrity of the CONTENTS, rather than the just integrity of the archive itself, should be documented and provided as an example in the man page.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: lrzip 0.603+2011.0423+git7ed977b-1
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
Uname: Linux 3.0.0-15-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Fri Feb 10 16:40:39 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: lrzip
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Todd A. Jacobs (codegnome) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.