Skip to content

Commit

Permalink
Kernel/FATFS: Make lookups case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
implicitfield authored and nico committed Nov 2, 2024
1 parent a9083f9 commit dca1a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/FileSystem/FATFS/Inode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ ErrorOr<NonnullRefPtr<Inode>> FATInode::lookup(StringView name)
VERIFY(has_flag(m_entry.attributes, FATAttributes::Directory));

auto inode = TRY(traverse([name](auto child) -> ErrorOr<bool> {
return child->m_filename->view() == name;
return child->m_filename->view().equals_ignoring_ascii_case(name);
}));

if (inode.is_null())
Expand Down

0 comments on commit dca1a75

Please sign in to comment.