mirror of
https://gitee.com/openharmony/security_huks
synced 2024-12-14 10:08:55 +00:00
commit
f827c252c4
@ -211,9 +211,9 @@ if (ohos_kernel_type == "liteos_m") {
|
|||||||
"//third_party/bounds_checking_function:libsec_shared",
|
"//third_party/bounds_checking_function:libsec_shared",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
#if (ohos_build_type == "debug") {
|
if (ohos_build_type == "debug") {
|
||||||
# group("huks_new_test") {
|
group("huks_new_test") {
|
||||||
# deps = [ "//base/security/huks/test:huks_new_test" ]
|
deps = [ "//base/security/huks/test:huks_new_test" ]
|
||||||
# }
|
}
|
||||||
#}
|
}
|
||||||
}
|
}
|
||||||
|
@ -145,12 +145,13 @@ static int32_t FileWrite(const char *fileName, uint32_t offset, const uint8_t *b
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t size = write(fd, buf, len);
|
int32_t size = write(fd, buf, len);
|
||||||
close(fd);
|
|
||||||
if (size < 0) {
|
if (size < 0) {
|
||||||
HKS_LOG_E("write file size failed, errno = 0x%x", errno);
|
HKS_LOG_E("write file size failed, errno = 0x%x", errno);
|
||||||
|
close(fd);
|
||||||
return HKS_ERROR_WRITE_FILE_FAIL;
|
return HKS_ERROR_WRITE_FILE_FAIL;
|
||||||
}
|
}
|
||||||
|
fsync(fd);
|
||||||
|
close(fd);
|
||||||
return HKS_SUCCESS;
|
return HKS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user