From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 26 18:14:17 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62F8116A4CB for ; Mon, 26 Jun 2006 18:14:17 +0000 (UTC) (envelope-from rodrigc@crodrigues.org) Received: from rwcrmhc15.comcast.net (rwcrmhc15.comcast.net [204.127.192.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6235D466A6 for ; Mon, 26 Jun 2006 18:12:53 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from c-71-233-168-2.hsd1.ma.comcast.net ([71.233.168.2]) by comcast.net (rwcrmhc15) with ESMTP id <20060626180808m15003j6nie>; Mon, 26 Jun 2006 18:08:08 +0000 Received: from c-71-233-168-2.hsd1.ma.comcast.net (localhost [127.0.0.1]) by c-71-233-168-2.hsd1.ma.comcast.net (8.13.6/8.13.1) with ESMTP id k5QI8H3E052542; Mon, 26 Jun 2006 14:08:17 -0400 (EDT) (envelope-from rodrigc@c-71-233-168-2.hsd1.ma.comcast.net) Received: (from rodrigc@localhost) by c-71-233-168-2.hsd1.ma.comcast.net (8.13.6/8.13.1/Submit) id k5QI8HtG052541; Mon, 26 Jun 2006 14:08:17 -0400 (EDT) (envelope-from rodrigc) Date: Mon, 26 Jun 2006 14:08:17 -0400 From: Craig Rodrigues To: Ashok Shrestha Message-ID: <20060626180817.GA52520@crodrigues.org> References: <79e2026f0606260618n603184e0ucbcb655b928a008c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79e2026f0606260618n603184e0ucbcb655b928a008c@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: checking zip file corruption X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 18:14:17 -0000 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@crodrigues.org