* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
This commit is contained in:
parent
197626b569
commit
aa78f5c4e6
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
|
||||||
|
ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
|
||||||
|
|
||||||
2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
|
* grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
|
||||||
|
|
|
@ -736,10 +736,17 @@ grub_iso9660_iterate_dir (grub_fshelp_node_t dir,
|
||||||
from the iso9660 filesystem. */
|
from the iso9660 filesystem. */
|
||||||
if (!dir->data->joliet && !filename)
|
if (!dir->data->joliet && !filename)
|
||||||
{
|
{
|
||||||
|
char *ptr;
|
||||||
name[dirent.namelen] = '\0';
|
name[dirent.namelen] = '\0';
|
||||||
filename = grub_strrchr (name, ';');
|
filename = grub_strrchr (name, ';');
|
||||||
if (filename)
|
if (filename)
|
||||||
*filename = '\0';
|
*filename = '\0';
|
||||||
|
/* ISO9660 names are not case-preserving. */
|
||||||
|
type |= GRUB_FSHELP_CASE_INSENSITIVE;
|
||||||
|
for (ptr = name; *ptr; ptr++)
|
||||||
|
*ptr = grub_tolower (*ptr);
|
||||||
|
if (ptr != name && *(ptr - 1) == '.')
|
||||||
|
*(ptr - 1) = 0;
|
||||||
filename = name;
|
filename = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue