|
/projects |
zipfile
Man Page Change Log Download Man Page
JUNZIP(1) OpenBSD Reference Manual JUNZIP(1)
NAME
junzip - ZIP archive testing, listing and extracting
SYNOPSIS
junzip [-t] [-t] zipfile
junzip -l zipfile
junzip -x [-d directory] zipfile [file ...]
DESCRIPTION
junzip is able to extract files from a ZIP archive with the option to
test the archive's integrity without extracting or to just list the con-
tents.
The flags -t, -l and -x change the behaviour of the command as follows:
-t Tells junzip to test the ZIP archive. This is the default action
if no other is given. An additional -t increases the testing to
check the CRC values files by decompressing files to /dev/null.
-l Tells junzip to list the ZIP archive contents.
-x Tells junzip to extract files.
Other flags can be specified depending on which behaviour flag was given:
-d directory
Specifies where to output extracted files. The current directory
is the default.
SEE ALSO
unzip(1L), http://www.dryfish.org/projects/junzip.html
HISTORY
junzip was written entirely because a large (approaching 4GB) zipfile
created using WinZip was said to be corrupt but actually follows the
specification which Info-Zip says it follows.
Info-Zip can be found here: http://www.info-zip.org/pub/infozip/
BUGS
Probably only compiles under OpenBSD 3.x.
OpenBSD 2.7 February 17, 2005 1
Change Log
2005.03.29:
Debugging output with verbose level > 3.
2005.03.15:
Streaming extact able to skip over non matching archive members.
2005.03.08:
Extract from seekable files.
Extract and streaming extract.
2005.03.02:
Work with zip files tagged onto the end of other files.
Use linked list to store all local file header entries and then compare them
to central directory entries in order to make sure that they match up.
Check that end of central directory entry points to first central directory.
Tweak linked list code.
Linked list, might need it.
Let extract() decide if we can test or not.
Report failure to open /dev/null.
2005.02.17:
No point in GNUmakefile.
Extract zip framework, uses fnmatch to decide what to output.
scanzip() altered to take -1 as an offset meaning to search for end of
central directory from the end of the file -- this was in listzip.
Generic extraction routine which decides where to go from there (stored
extraction or inflation).
Means we've coded stored extraction though.
BSD Licence and Make.
Implement listzip by making scanzip accept a FILE* and offset.
2005.02.16:
Command line switches.
scanzip() more generic and calls callback functions for testing and listing.
Listing not coded.
Testing should check Central Directory matches up etc.
Undynamic output buffer.
Test inflate and compare crc32.
vis call which allocates memory.
Read in filename.
Inflate a file.
Scanner in C.
Download zipfile-20050412.tar.gz |