summaryrefslogtreecommitdiffstats
path: root/fastboot/fastboot.c
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2014-04-29 13:45:05 -0700
committerJP Abgrall <jpa@google.com>2014-05-06 12:28:39 -0700
commit82280594ef7e9dc908aa67f3da8661ff54a96c9e (patch)
tree257484ca978528cfa1cd341059058019f0b11d13 /fastboot/fastboot.c
parente6f3e9bd2656fe132f829ed035fdea0cb111369d (diff)
downloadsystem_core-82280594ef7e9dc908aa67f3da8661ff54a96c9e.zip
system_core-82280594ef7e9dc908aa67f3da8661ff54a96c9e.tar.gz
system_core-82280594ef7e9dc908aa67f3da8661ff54a96c9e.tar.bz2
fastboot: Fixed optional entries
Previously, if an image was listed as optional, but was not found, flashall would fail. Now it will proceed if optional images are not present. Change-Id: Ic82595cf0cd6ddce4c676de590f03f1a95f32040 Signed-off-by: Daniel Rosenberg <drosen@google.com>
Diffstat (limited to 'fastboot/fastboot.c')
-rw-r--r--fastboot/fastboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c
index 7f49ae9..79d0166 100644
--- a/fastboot/fastboot.c
+++ b/fastboot/fastboot.c
@@ -657,7 +657,7 @@ static int load_buf(usb_handle *usb, const char *fname,
fd = open(fname, O_RDONLY | O_BINARY);
if (fd < 0) {
- die("cannot open '%s'\n", fname);
+ return -1;
}
return load_buf_fd(usb, fd, buf);