From: Saurav Babu Date: Tue, 17 Oct 2017 09:05:49 +0000 (+0000) Subject: Revert "Fix SVACE issue for CID:24236, 31182" X-Git-Tag: accepted/tizen/unified/20171018.062731~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F50%2F156150%2F1;p=platform%2Fupstream%2Fconnman.git Revert "Fix SVACE issue for CID:24236, 31182" This reverts commit a711ff292b5f32788175bf64656f6a6d14c5f372. Change-Id: Id10d81c311605e6a8d74735f3fd7e7df2a2aae6c --- diff --git a/src/log.c b/src/log.c index 0a40887..32b35bc 100755 --- a/src/log.c +++ b/src/log.c @@ -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); }