Merge "Removing local image lookup from load_buf" am: 77ac76c094
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2633938 Change-Id: Ia95bd536625b678b39c8b688b49ddd8cb10f6117 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
0a2c44f5d3
1 changed files with 1 additions and 3 deletions
|
@ -1076,9 +1076,7 @@ static bool load_buf(const char* fname, struct fastboot_buffer* buf) {
|
|||
unique_fd fd(TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_BINARY)));
|
||||
|
||||
if (fd == -1) {
|
||||
auto path = find_item_given_name(fname);
|
||||
fd = unique_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_BINARY)));
|
||||
if (fd == -1) return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
struct stat s;
|
||||
|
|
Loading…
Reference in a new issue