Merge "Try to mount vol->device2 partition to UMS." into gingerbread
This commit is contained in:
commit
cde585e3de
@ -353,7 +353,8 @@ void show_mount_usb_storage_menu()
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (write(fd, vol->device, strlen(vol->device)) < 0) {
|
||||
if ((write(fd, vol->device, strlen(vol->device)) < 0) &&
|
||||
(!vol->device2 || (write(fd, vol->device, strlen(vol->device2)) < 0))) {
|
||||
LOGE("Unable to write to ums lunfile (%s)", strerror(errno));
|
||||
close(fd);
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user