Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OeAls-0006XJ-87 for mharc-grub-devel@gnu.org; Wed, 28 Jul 2010 13:50:24 -0400 Received: from [140.186.70.92] (port=47598 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeAlp-0006XE-3U for grub-devel@gnu.org; Wed, 28 Jul 2010 13:50:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeAlo-0001tG-0z for grub-devel@gnu.org; Wed, 28 Jul 2010 13:50:20 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:56123) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeAln-0001t4-V2 for grub-devel@gnu.org; Wed, 28 Jul 2010 13:50:19 -0400 Received: from caffeine.csclub.uwaterloo.ca (localhost [127.0.0.1]) by caffeine.csclub.uwaterloo.ca (Postfix) with ESMTP id AE0CB6601 for ; Wed, 28 Jul 2010 13:40:33 -0400 (EDT) Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id 7EA546829; Wed, 28 Jul 2010 13:40:33 -0400 (EDT) Date: Wed, 28 Jul 2010 13:40:33 -0400 To: The development of GNU GRUB Message-ID: <20100728174033.GH2632@caffeine.csclub.uwaterloo.ca> References: <4C4E2FC5.10607@gmail.com> <20100727152625.GX2632@caffeine.csclub.uwaterloo.ca> <4C4FEF8C.5060200@gmail.com> <20100728150037.GC2632@caffeine.csclub.uwaterloo.ca> <20100728155158.GE2632@caffeine.csclub.uwaterloo.ca> <4C505B37.2020009@gmail.com> <20100728170155.GG2632@caffeine.csclub.uwaterloo.ca> <4C5064F0.6000501@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C5064F0.6000501@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Big Endian fix patch X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2010 17:50:22 -0000 On Wed, Jul 28, 2010 at 01:12:16PM -0400, Doug Nazar wrote: > On 2010-07-28 1:01 PM, Lennart Sorensen wrote: >> Well I don't think that helped (unless I messed up the compile). >> > > The following works for me. Just finished testing it. Damn these 15 > minute boot times. > > Doug > > === modified file 'normal/completion.c' > --- normal/completion.c 2010-06-11 20:31:16 +0000 > +++ normal/completion.c 2010-07-28 17:02:42 +0000 > @@ -247,7 +247,7 @@ > goto fail; > } > > - dir = grub_strchr (current_word, '/'); > + dir = grub_strchr (current_word + grub_strlen(device) + 2, '/'); > last_dir = grub_strrchr (current_word, '/'); > if (dir) > { > I was wondering if it needed + 2 to account for the parens. I wasn't sure the current_word always contained a device name though. -- Len Sorensen