diff --git a/otafault/ota_io.cpp b/otafault/ota_io.cpp index a3780408..9434ebea 100644 --- a/otafault/ota_io.cpp +++ b/otafault/ota_io.cpp @@ -189,8 +189,8 @@ int ota_fsync(int fd) { && FilenameCache[fd] == FaultFileName) { FaultFileName = ""; errno = EIO; - return -1; have_eio_error = true; + return -1; } else { int status = fsync(fd); if (status == -1 && errno == EIO) {