From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C79Hp-0001Fq-Er for mharc-grub-devel@gnu.org; Tue, 14 Sep 2004 05:07:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C79Hl-0001EE-MU for grub-devel@gnu.org; Tue, 14 Sep 2004 05:07:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C79Hi-0001Dh-P9 for grub-devel@gnu.org; Tue, 14 Sep 2004 05:07:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C79Hi-0001DX-B8 for grub-devel@gnu.org; Tue, 14 Sep 2004 05:07:34 -0400 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C79Bp-0000aM-Ob for grub-devel@gnu.org; Tue, 14 Sep 2004 05:01:29 -0400 Received: from localhost (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 4AC72F54F744 for ; Tue, 14 Sep 2004 11:01:29 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Tue, 14 Sep 2004 11:01:44 +0200 User-Agent: KMail/1.6.1 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Message-Id: <200409141101.44648.okuji@enbug.org> Subject: Re: [patch] allow ls to handle device names containing '/' characters 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: Tue, 14 Sep 2004 09:07:38 -0000 On Tuesday 14 September 2004 02:56, Hollis Blanchard wrote: > I don't know if there are other commands that need to be modified in > a similar manner; I have only tried ls. Your patch will fail if the name does not contain a device part. Shouldn't it be like this: path = grub_strchr (dirname, ')'); if (! path) path = dirname; Okuji