merge in nyc-release history after reset to nyc-dev
diff --git a/otafault/ota_io.cpp b/otafault/ota_io.cpp
index a378040..9434ebe 100644
--- a/otafault/ota_io.cpp
+++ b/otafault/ota_io.cpp
@@ -189,8 +189,8 @@
             && FilenameCache[fd] == FaultFileName) {
         FaultFileName = "";
         errno = EIO;
-        return -1;
         have_eio_error = true;
+        return -1;
     } else {
         int status = fsync(fd);
         if (status == -1 && errno == EIO) {