summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaesub kim <taesub.kim@samsung.com>2017-10-18 00:29:04 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-10-18 00:29:04 +0000
commitc8803bff3168d9f153484a3b673f605cb7527177 (patch)
treeabd19d7b320ca3da81d299bb466e60213665468c
parent6e2cfdae0dd71a8eeeb72ee29ed9093c62cc4d28 (diff)
parent48131c2289ff925b95563038c5061247cf6225b1 (diff)
downloadconnman-c8803bff3168d9f153484a3b673f605cb7527177.tar.gz
connman-c8803bff3168d9f153484a3b673f605cb7527177.tar.bz2
connman-c8803bff3168d9f153484a3b673f605cb7527177.zip
Merge "Revert "Fix SVACE issue for CID:24236, 31182"" into tizen_4.0
-rwxr-xr-xsrc/log.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/log.c b/src/log.c
index af7db0eb..2805c3e4 100755
--- a/src/log.c
+++ b/src/log.c
@@ -78,15 +78,13 @@ static void __connman_log_update_file_revision(int rev)
next_log_file = g_strdup_printf("%s.%d", LOG_FILE_PATH, next_log_rev);
if (next_log_rev >= MAX_LOG_COUNT)
- if (remove(next_log_file) != 0)
- __connman_log_s(LOG_INFO, "error: remove failed for %s", next_log_file);
+ remove(next_log_file);
if (access(next_log_file, F_OK) == 0)
__connman_log_update_file_revision(next_log_rev);
if (rename(log_file, next_log_file) != 0)
- if (remove(log_file) != 0)
- __connman_log_s(LOG_INFO, "error: remove failed for %s", log_file);
+ remove(log_file);
g_free(log_file);
g_free(next_log_file);
@@ -103,8 +101,7 @@ static void __connman_log_make_backup(void)
__connman_log_update_file_revision(rev);
if (rename(LOG_FILE_PATH, backup) != 0)
- if (remove(LOG_FILE_PATH) != 0)
- __connman_log_s(LOG_INFO, "error: remove failed for %s", LOG_FILE_PATH);
+ remove(LOG_FILE_PATH);
g_free(backup);
}