diff options
author | jc815.lee <jc815.lee@samsung.com> | 2013-07-30 19:37:57 +0900 |
---|---|---|
committer | jc815.lee <jc815.lee@samsung.com> | 2013-07-30 19:38:15 +0900 |
commit | 68f64bfced0edf001099326337a1a47ae1f63207 (patch) | |
tree | 4cdec1e22390e57730353345e68dcb955db53ceb | |
parent | 5775eb97043dcb47058a555960b5942674a0aad9 (diff) | |
download | secure-storage-68f64bfced0edf001099326337a1a47ae1f63207.tar.gz secure-storage-68f64bfced0edf001099326337a1a47ae1f63207.tar.bz2 secure-storage-68f64bfced0edf001099326337a1a47ae1f63207.zip |
sync with private
[model]
[binary_type]
[customer]
[issue#]
[problem]
[cause]
[solution]
[team]
[request]
[horizontal_expansion]
Change-Id: I8a88bae8f6c30ec6b6a396b51533842fafb6d09b
Signed-off-by: jc815.lee <jc815.lee@samsung.com>
-rwxr-xr-x | server/src/ss_server_main.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/server/src/ss_server_main.c b/server/src/ss_server_main.c index c0f5fa9..34c1919 100755 --- a/server/src/ss_server_main.c +++ b/server/src/ss_server_main.c @@ -192,7 +192,7 @@ int IsDirExist(const char* dirpath) if((dp = opendir(dirpath)) == NULL) // dir is not exist { - SLOGE("directory [%s] is not exist.\n", dirpath); + SECURE_SLOGE("directory [%s] is not exist.\n", dirpath); return 0; // return value '0' represents dir is not exist } else @@ -558,7 +558,6 @@ int SsServerDataStoreFromBuffer(int sender_pid, char* writebuffer, size_t bufLen unsigned char e_text[ENCRYPT_SIZE] = {0, }; int res = -1; - //0. get directory name and privilege check char dir[MAX_GROUP_ID_LEN] = {0,}; if(GetProcessStorageDir(sockfd, sender_pid, group_id, dir) < 0) @@ -594,7 +593,7 @@ int SsServerDataStoreFromBuffer(int sender_pid, char* writebuffer, size_t bufLen // open a file with write mode if(!(fd_out = fopen(out_filepath, "wb"))) { - SLOGE("File open error:(out_filepath) %s\n", out_filepath); + SECURE_SLOGE("File open error:(out_filepath) %s\n", out_filepath); free(buffer); return SS_FILE_OPEN_ERROR; // file related error } @@ -701,7 +700,7 @@ int SsServerDataRead(int sender_pid, const char* data_filepath, char* pRetBuf, u // 2. open file if(!(fd_in = fopen(in_filepath, "rb"))) { - SLOGE("File open error:(in_filepath) %s\n", in_filepath); + SECURE_SLOGE("File open error:(in_filepath) %s\n", in_filepath); return SS_FILE_OPEN_ERROR; // file related error } @@ -709,7 +708,7 @@ int SsServerDataRead(int sender_pid, const char* data_filepath, char* pRetBuf, u if(fseek(fd_in, (long)offset + sizeof(ssm_file_info_t), SEEK_SET) < 0) { int err_tmp = errno; - SLOGE("Fseek error: %s in %s\n", strerror(err_tmp), in_filepath); + SECURE_SLOGE("Fseek error: %s in %s\n", strerror(err_tmp), in_filepath); fclose(fd_in); return SS_FILE_OPEN_ERROR; // file related error } @@ -830,7 +829,7 @@ int SsServerGetInfo(int sender_pid, const char* data_filepath, char* file_info, // 1. open file if(!(fd_in = fopen( in_filepath, "rb"))) { - SLOGE("File open error:(in_filepath) [%s], [%s]\n", data_filepath, in_filepath ); + SECURE_SLOGE("File open error:(in_filepath) [%s], [%s]\n", data_filepath, in_filepath ); return SS_FILE_OPEN_ERROR; // file related error } |