Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JMqOJ-0004km-KU for mharc-grub-devel@gnu.org; Wed, 06 Feb 2008 14:57:07 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMqOG-0004hK-Im for grub-devel@gnu.org; Wed, 06 Feb 2008 14:57:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMqOD-0004eb-WB for grub-devel@gnu.org; Wed, 06 Feb 2008 14:57:03 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMqOD-0004e6-GT for grub-devel@gnu.org; Wed, 06 Feb 2008 14:57:01 -0500 Received: from ti-out-0910.google.com ([209.85.142.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMqOC-0004IF-OL for grub-devel@gnu.org; Wed, 06 Feb 2008 14:57:01 -0500 Received: by ti-out-0910.google.com with SMTP id a20so597663tia.10 for ; Wed, 06 Feb 2008 11:56:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=XyBMjKnb8fKf52ZbRtr3fIqlGDxYJe8X3+1jIhom/8Y=; b=gig6XNRIADrVoaw1L3fsx2btNUeCmN30KJpGlIU4G8JWppmPfdPV9VG8sAH+OgBryPRN+o+jF4fWP9LNGEllyXZSEfwwOmbx+sdGOyhLMF8EmO5PdS+V9YBvGekR5jHSQdAcJ/BAQlthKu4VtjR4OwtngTJPkfmhlow4sLIBBfU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=w13zJDRoMFTlDNVJoORthqwVY7b6+dOVIVDLfEcKfqjB9UqoarPWcY5a4g3LrNgip8GJnsWDRh2I0nX5dDXW4yUVDELc5iqrr43q8doXAzoPu7oatP5sYUDMTVm/uh/zi0z10GbOTwUOBg59P8p6AbSuqez3Gclf6ORkWz2rET8= Received: by 10.110.26.10 with SMTP id 10mr5555254tiz.54.1202327818310; Wed, 06 Feb 2008 11:56:58 -0800 (PST) Received: by 10.110.62.19 with HTTP; Wed, 6 Feb 2008 11:56:58 -0800 (PST) Message-ID: Date: Thu, 7 Feb 2008 03:56:58 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <20080206191852.GA7986@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47A8EB0D.6070103@t-online.de> <20080206191852.GA7986@thorin> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: [PATCH] Fix crash on open of nonexisting tar/cpio file, fix cpio trailer detection X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 19:57:04 -0000 On Feb 7, 2008 3:18 AM, Robert Millan wrote: > On Wed, Feb 06, 2008 at 03:29:45PM +0800, Bean wrote: > > > This patch fixes both issues. > > > > Actually, the first version of grub_cpio_find_file returned > > GRUB_ERR_FILE_NONE when the end of file is encounter, but then, > > somebody find out that opening non existent file have problem, and the > > result is changed to GRUB_ERR_FILE_NOT_FOUND. I guess it still have > > problem, the fix you are providing seems ok. > > Christian doesn't have write perms. Bean, since you're more familiar with > this code, will you check that in? ok, committed. -- Bean