diff options
author | taesub kim <taesub.kim@samsung.com> | 2017-10-17 23:05:42 +0000 |
---|---|---|
committer | taesub kim <taesub.kim@samsung.com> | 2017-10-17 23:05:42 +0000 |
commit | 48131c2289ff925b95563038c5061247cf6225b1 (patch) | |
tree | f92349ae79d910f4337a4e12c381c48bb4842784 | |
parent | e6637f83c3a33ebab633ba104855bae3d7ce24c6 (diff) | |
download | connman-48131c2289ff925b95563038c5061247cf6225b1.tar.gz connman-48131c2289ff925b95563038c5061247cf6225b1.tar.bz2 connman-48131c2289ff925b95563038c5061247cf6225b1.zip |
Revert "Fix SVACE issue for CID:24236, 31182"
This reverts commit e6637f83c3a33ebab633ba104855bae3d7ce24c6.
Change-Id: Iffabac76c36124cdb72ad08d724f0e3b43d42459
-rwxr-xr-x | src/log.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -77,15 +77,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); @@ -102,8 +100,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); } |