checking zip file corruption

Craig Rodrigues rodrigc at crodrigues.org
Mon Jun 26 18:14:17 UTC 2006


On Mon, Jun 26, 2006 at 09:18:31AM -0400, Ashok Shrestha wrote:
> Hi all,
> 
> I am writing code to check if incoming zip files are corrupt and the
> client is not willing to send a digest (like md5) of the file.

Why don't you just use InfoZip's "unzip -t" flag which tests
the integrity of a zip file?  You can call "unzip -t" from Perl.

InfoZip is in ports, archivers/unzip and archivers/zip.

-- 
Craig Rodrigues        
rodrigc at crodrigues.org


More information about the freebsd-hackers mailing list