summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-06-20 21:52:31 -0400
committerTom Rini <trini@konsulko.com>2019-06-20 21:52:31 -0400
commit226a35ef0ef310d8fffa3e6283ee3aab9dab26aa (patch)
tree22fe10155b4a590a165edaee8f5eb2b9b777b2fd /tools
parentf643fb9f4c8fc5c5dceb8c2c2893447d18413d77 (diff)
parent2bc1821e8662f9ed67cc6eeb680148bb5c148379 (diff)
Merge branch '2019-06-20-master-imports'
- Assorted minor fixes
Diffstat (limited to 'tools')
-rw-r--r--tools/env/fw_env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index cfada0ee11..eef12dd2b7 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -1317,7 +1317,7 @@ static int flash_io_write(int fd_current)
rc = -1;
}
- if (target_temp) {
+ if (rc >= 0 && target_temp) {
int dir_fd;
dir_fd = open(dname, O_DIRECTORY | O_RDONLY);