fix flash image for explicit bml path

Change-Id: Ifeccfb65d6a927440249f7ab2fd9b0512ccc491c
This commit is contained in:
Koushik Dutta 2011-10-29 21:38:53 -07:00
parent c9ea117b56
commit 890b951a3d

View File

@ -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;