mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
efi_loader: '.' and '..' are directories
'.' and '..' are directories. So when looking for capsule files it is sufficient to check that the attribute EFI_FILE_DIRECTORY is not set. We don't have to check for these special names. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
9d30a941cc
commit
841f7a4ebb
@ -753,9 +753,7 @@ static efi_status_t efi_capsule_scan_dir(u16 ***files, unsigned int *num)
|
|||||||
if (!tmp_size)
|
if (!tmp_size)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (!(dirent->attribute & EFI_FILE_DIRECTORY) &&
|
if (!(dirent->attribute & EFI_FILE_DIRECTORY))
|
||||||
u16_strcmp(dirent->file_name, L".") &&
|
|
||||||
u16_strcmp(dirent->file_name, L".."))
|
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user