Multiple volumes for unarj

As you may have noticed, unarj 2.41a doesn't support extraction of multiple-volume archives. I decided to 'fix' this. As I didn't want this to get too complex, I didn't implement automatic extraction of all volumes. Instead you have to unarj each volume in order (on top of each other). Provided you have a reasonable shell (i.e. not COMMAND.COM :), this should not be a real problem. Extensive error-handling is done, so the only way to corrupt your files is (IMHO=in my hoping opinion :) already having a file with the right (= conflicting) name and size at the right position.

My patch changes the (IMHO wrong) behaviour of unarj: a continuation is no longer extracted if the file doesn't exist and doesn't have the right size. You may not like this incompatibility, although I can't imagine why.

To clarify the usage of unarj 2.41b (that's what I call my patched version), an example:

Consider having an archive consisting of three volumes:

arjchive.arj,
arjchive.a01 and
arjchive.a02
The 'right' way of extracting these would be
# unarj arjchive.arj
# unarj arjchive.a01
# unarj arjchive.a02
but due to the sophisticated error-handling you even get the correct files with
# unarj arjchive.a02
# unarj arjchive.a01
# unarj arjchive.a02
# unarj arjchive.arj
# unarj arjchive.a01
- provided every volume contains at least two files. The advantage of this is that, if you forget to extract one (or more) volumes in the middle of the archive, you may be able to fix it without starting afresh.

Note that I didn't document my changes in unarj.doc.

Please mail bug-reports, comments, ... for this patch to me, arne@unix-ag.org.


The original unarj241 is copyright (c) 1991-93 by Robert K Jung.
aeb@cwi.nl added automatic directory creation for x mode (called unarj241a). This version, to which I made my patch, is availible on sunsite at ftp://sunsite.unc.edu/pub/Linux/utils/compress/unarj241a.tar.gz.


© Uni-GH Siegen, Unix-AG, webmaster@unix-ag.org
(changed: )
Bei Links auf externe Seiten übernehmen wir keine Haftung für den Inhalt. Sollten verlinkte Seiten Inhalte enthalten, mit denen Sie nicht einverstanden sind, teilen Sie uns die entsprechenden Links bitte mit.