From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1J9PZX-0002oe-9Z for mharc-grub-devel@gnu.org; Mon, 31 Dec 2007 13:41:11 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J9PZV-0002oG-I0 for grub-devel@gnu.org; Mon, 31 Dec 2007 13:41:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J9PZU-0002n8-39 for grub-devel@gnu.org; Mon, 31 Dec 2007 13:41:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9PZT-0002n5-TP for grub-devel@gnu.org; Mon, 31 Dec 2007 13:41:07 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J9PZT-0006Il-IQ for grub-devel@gnu.org; Mon, 31 Dec 2007 13:41:07 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1J9PZS-0000vE-6l for grub-devel@gnu.org; Mon, 31 Dec 2007 19:41:06 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1J9PZB-0001z0-1O for grub-devel@gnu.org; Mon, 31 Dec 2007 19:40:49 +0100 Date: Mon, 31 Dec 2007 19:40:49 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20071231184048.GA7545@thorin> References: <87fxzedmzp.fsf@xs4all.nl> <473B4C8F.1040001@nic.fi> <87bq9rrdcd.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Transparent decompression with file system filter 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: Mon, 31 Dec 2007 18:41:09 -0000 On Tue, Jan 01, 2008 at 12:59:57AM +0800, Bean wrote: > Hi, > > Changes in this new patch: > > 1, change function name grub_file_open_raw to grub_file_ropen > 2, replace grub_file_open in command/blocklist.c and > util/i386/pc/grub-setup.c to grub_file_ropen. > > If nobody objects, i would like to commit this in a few days. Please add the missing spaces in: +grub_file_t +grub_file_open (const char *name) +{ + grub_file_t file; + grub_fshook_t p; + char *val; + + file=grub_file_ropen (name); ^^ + + if (! file) + return file; + + val= grub_env_get ("nofshook"); + if ((val) && (val[0]=='1')) ^^^ + return file; + + for (p=grub_fshook_list;p;p=p->next) ^^ ^^^^^ + { + grub_file_t new_file; + + new_file = (*p->open_func) (file); + if (new_file) + return new_file; + } + + return file; +} -- Robert Millan I know my rights; I want my phone call! What use is a phone call, if you are unable to speak? (as seen on /.)