* 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:
Vladimir 'phcoder' Serbinenko 2012-05-18 12:51:02 +02:00
parent 197626b569
commit aa78f5c4e6
2 changed files with 12 additions and 0 deletions

View file

@ -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>
* grub-core/fs/jfs.c (grub_jfs_data): New field caseins.

View file

@ -736,10 +736,17 @@ grub_iso9660_iterate_dir (grub_fshelp_node_t dir,
from the iso9660 filesystem. */
if (!dir->data->joliet && !filename)
{
char *ptr;
name[dirent.namelen] = '\0';
filename = grub_strrchr (name, ';');
if (filename)
*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;
}