mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-04 06:02:28 +03:00
fat: Ignore volume label entries in directories. Fixes #107
This commit is contained in:
parent
134fd3c8bd
commit
25e119496e
@ -265,6 +265,11 @@ static int fat32_open_in(struct fat32_context* context, struct fat32_directory_e
|
||||
break;
|
||||
}
|
||||
|
||||
if (directory_entries[i].attribute & (1 << 3)) {
|
||||
// It is a volume label, skip
|
||||
continue;
|
||||
}
|
||||
|
||||
if (directory_entries[i].attribute == FAT32_LFN_ATTRIBUTE) {
|
||||
struct fat32_lfn_entry* lfn = (struct fat32_lfn_entry*) &directory_entries[i];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user