mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
eficonfig: fix going one directory up issue
The directory name in eficonfig menu entry contains the '\' separator. strcmp() argument ".." is wrong and one directory up handling does not work correctly. strcmp() argument must include '\' separator. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
7fb73cd999
commit
c67d3c9e23
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ static efi_status_t eficonfig_file_selected(void *data)
|
|||
if (!info)
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
||||
if (!strcmp(info->file_name, "..")) {
|
||||
if (!strcmp(info->file_name, "..\\")) {
|
||||
struct eficonfig_filepath_info *iter;
|
||||
struct list_head *pos, *n;
|
||||
int is_last;
|
||||
|
|
Loading…
Reference in a new issue