fix flash image for explicit bml path
Change-Id: Ifeccfb65d6a927440249f7ab2fd9b0512ccc491c
This commit is contained in:
parent
c9ea117b56
commit
890b951a3d
@ -65,7 +65,7 @@ static int restore_internal(const char* bml, const char* filename)
|
||||
|
||||
int cmd_bml_restore_raw_partition(const char *partition, const char *filename)
|
||||
{
|
||||
if (strcmp(partition, "boot") != 0 && strcmp(partition, "recovery") != 0 && strcmp(partition, "recoveryonly") != 0)
|
||||
if (strcmp(partition, "boot") != 0 && strcmp(partition, "recovery") != 0 && strcmp(partition, "recoveryonly") != 0 && partition[0] != '/')
|
||||
return 6;
|
||||
|
||||
int ret = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user