[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
slash in device name
From: |
Hollis Blanchard |
Subject: |
slash in device name |
Date: |
Tue, 31 Aug 2004 23:56:39 -0500 |
On Open Firmware systems our device paths have slashes in them. This is
not true in the case that there's a predefined alias to the device,
which is how grub2 has been working on New World Power Mac so far.
However, in the general case we have slashes.
Accordingly, this patch is needed to get ls to get the filename from
after the close-paren of the device specifier.
-Hollis
Index: commands/ls.c
===================================================================
RCS file: /cvsroot/grub/grub2/commands/ls.c,v
retrieving revision 1.2
diff -u -r1.2 ls.c
--- commands/ls.c 4 Apr 2004 13:46:00 -0000 1.2
+++ commands/ls.c 1 Sep 2004 04:50:06 -0000
@@ -177,7 +177,8 @@
goto fail;
fs = grub_fs_probe (dev);
- path = grub_strchr (dirname, '/');
+ path = grub_strchr (dirname, ')');
+ path = grub_strchr (path, '/');
if (! path && ! device_name)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- slash in device name,
Hollis Blanchard <=