Merge "otafault: Fix setting of have_eio_error." into nyc-dev
This commit is contained in:
+1
-1
@@ -189,8 +189,8 @@ int ota_fsync(int fd) {
|
|||||||
&& FilenameCache[fd] == FaultFileName) {
|
&& FilenameCache[fd] == FaultFileName) {
|
||||||
FaultFileName = "";
|
FaultFileName = "";
|
||||||
errno = EIO;
|
errno = EIO;
|
||||||
return -1;
|
|
||||||
have_eio_error = true;
|
have_eio_error = true;
|
||||||
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
int status = fsync(fd);
|
int status = fsync(fd);
|
||||||
if (status == -1 && errno == EIO) {
|
if (status == -1 && errno == EIO) {
|
||||||
|
|||||||
Reference in New Issue
Block a user