// get its details
ret = stat64(pAbsDirEntryPath.get(), &statbuf);
- SysTryReturn(NID_IO, (ret == 0), r = __ConvertNativeErrorToResult(errno), __ConvertNativeErrorToResult(errno),
+ SysSecureTryReturn(NID_IO, (ret == 0), r = __ConvertNativeErrorToResult(errno), __ConvertNativeErrorToResult(errno),
"[%s] Failed to get attributes for dir entry (%s) whose absolute dirpath is (%s)with errno [%d].",
__ConvertNativeErrorToMessage(errno), dirEnt.d_name, pAbsDirPath.get(), errno);
if (pFile == null)
{
r = __ConvertNativeErrorToResult(errno);
- SysLogException(NID_IO, r, "[%s] Failed to open file (%s) in openMode (%s), errno: %d (%s).",
+ SysSecureLogException(NID_IO, r, "[%s] Failed to open file (%s) in openMode (%s), errno: %d (%s).",
GetErrorMessage(r), pFilePath.get(), pOpenMode, errno, strerror(errno));
return r;
}
{
r = pNormalFile->Construct(filePath, pOpenMode);
}
- SysTryReturn(NID_IO, !IsFailed(r), r, r, "[%s] Failed to open file (%ls) in openmode (%s).",
+ SysSecureTryReturn(NID_IO, !IsFailed(r), r, r, "[%s] Failed to open file (%ls) in openmode (%s).",
GetErrorMessage(r), filePath.GetPointer(), pOpenMode);
if (_append)