From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 29 17:53:11 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 A80A116A494 for ; Thu, 29 Jun 2006 17:53:11 +0000 (UTC) (envelope-from ashok.shrestha@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F53C43D58 for ; Thu, 29 Jun 2006 17:53:10 +0000 (GMT) (envelope-from ashok.shrestha@gmail.com) Received: by ug-out-1314.google.com with SMTP id m3so498952uge for ; Thu, 29 Jun 2006 10:53:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qMWhPbuny+TaS/l/qoDuhq9wcOPwNzQFIsPxRje7ZR0b2wQp3xVQoDmw5xIfR5tEprZ1NuMTVmDyN1Vr5SqP8cEFJHBW1+xgxFiE4XZMlfdkWmIu9jQVO4dTXpk6xbh/y6KiH1rqwW/uenTAfO4ItZ3/G1naEgBDiGVyv80n5tY= Received: by 10.67.93.7 with SMTP id v7mr2135445ugl; Thu, 29 Jun 2006 10:53:09 -0700 (PDT) Received: by 10.66.251.5 with HTTP; Thu, 29 Jun 2006 10:53:08 -0700 (PDT) Message-ID: <79e2026f0606291053v5779bbd0ra7707af6b5ee1472@mail.gmail.com> Date: Thu, 29 Jun 2006 13:53:08 -0400 From: "Ashok Shrestha" To: "Craig Rodrigues" In-Reply-To: <20060626180817.GA52520@crodrigues.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <79e2026f0606260618n603184e0ucbcb655b928a008c@mail.gmail.com> <20060626180817.GA52520@crodrigues.org> 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: Thu, 29 Jun 2006 17:53:11 -0000 Thank you for the suggestion. On 6/26/06, Craig Rodrigues wrote: > 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 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- Ashok Shrestha