//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
if (__pDir == null)
{
r = _NativeError::ConvertNativeErrorToResult(errno, true);
- SysLog(NID_IO, "[%s] Failed to open directory (%s).", GetErrorMessage(r), pDirPath.get());
+ SysSecureLogException(NID_IO, r, "[%s] Failed to open directory (%s).", GetErrorMessage(r), pDirPath.get());
goto CATCH;
}
return E_SUCCESS;
CATCH:
-
return r;
}
strcpy(absPath, pDirPath);
strcat(absPath, "/");
strcat(absPath, dirEnt.d_name);
- //SysLog(NID_IO, "entry name: %s", absPath);
- struct stat statbuf;
- memset(&statbuf, 0, sizeof(struct stat));
- if (lstat(absPath, &statbuf) == -1)
+ struct stat64 statbuf;
+ memset(&statbuf, 0, sizeof(struct stat64));
+ if (lstat64(absPath, &statbuf) == -1)
{
r = _NativeError::ConvertNativeErrorToResult(errno, true);
SysLog(NID_IO, "[%s] Failed to get file status. errno: %d (%s)",
}
if (!S_ISLNK(statbuf.st_mode))
{
- if (stat(absPath, &statbuf) < 0)
+ if (stat64(absPath, &statbuf) < 0)
{
r = _NativeError::ConvertNativeErrorToResult(errno, true);
SysLog(NID_IO, "[%s] Failed to get file status. errno: %d (%s)",