Package: unp
Version: 1.0.15
Severity: important

The exit code of unp isn't adequate if unpacking fails (e.g. when
running it on an unfinished download):

,---- [ unp demo ]
| % unp testfile.rar
|
| RAR 3.80   Copyright (c) 1993-2008 Alexander Roshal   16 Sep 2008
| Shareware version         Type RAR -? for help
|
|
| Extracting from testfile.rar
|
| Extracting  testfile.dd           100%
| testfile.dd  - CRC failed
| Unexpected end of archive
| Total errors: 2
|
| [...]
| % echo $?
| 0
`----

The exit code of the invoked rar utility is fine though:

,---- [ rar demo ]
| % rar e testfile.rar
|
| RAR 3.80   Copyright (c) 1993-2008 Alexander Roshal   16 Sep 2008
| Shareware version         Type RAR -? for help
|
|
| Extracting from testfile.rar
|
| Extracting  testfile.dd           100%
| testfile.dd - CRC failed
| Unexpected end of archive
| Total errors: 2
|
| % echo $?
| 3
`----

This bug is especially annoying if you execute something like "unp
foo.rar && rm foo.rar" which will delete the original file even
though it wasn't extracted.

regards,
-mika-



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/2010-06-04t12-21...@devnull.michael-prokop.at

Reply via email to