mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 16:19:22 +00:00
* 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:
1 parent
197626b569
commit
aa78f5c4e6
2 files changed
+12
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user