From 43a2fd7993258cc8937f430a14892840e02baeb6 Mon Sep 17 00:00:00 2001 From: Jooseok Song Date: Tue, 8 Aug 2017 14:00:13 +0900 Subject: [PATCH] Revert modificatoin of journal file owner Change-Id: Ia8cb8455d2a7e7e41ee3e1985d7857bd0d0396d5 --- src/account_offline.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/account_offline.c b/src/account_offline.c index 20982f3..649b4b8 100644 --- a/src/account_offline.c +++ b/src/account_offline.c @@ -104,10 +104,10 @@ static int _account_user_db_open(sqlite3 **p_hAccountDB, int mode, uid_t uid) ret = chmod(account_db_path, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); ACCOUNT_DEBUG("chmod result = [%d]", ret); - ret = chown(account_db_jn_path, SERVICE_FW_UID, SERVICE_FW_GID); - ACCOUNT_DEBUG("chown result = [%d]", ret); - ret = chmod(account_db_jn_path, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); - ACCOUNT_DEBUG("chmod result = [%d]", ret); + //ret = chown(account_db_jn_path, SERVICE_FW_UID, SERVICE_FW_GID); + //ACCOUNT_DEBUG("chown result = [%d]", ret); + //ret = chmod(account_db_jn_path, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); + //ACCOUNT_DEBUG("chmod result = [%d]", ret); } else { if (mode == ACCOUNT_DB_OPEN_READWRITE) rc = db_util_open(account_db_path, p_hAccountDB, DB_UTIL_REGISTER_HOOK_METHOD); @@ -195,10 +195,10 @@ static int _account_global_db_open(int mode) ret = chmod(account_db_path, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); ACCOUNT_DEBUG("chmod result = [%d]", ret); - ret = chown(account_db_jn_path, SERVICE_FW_UID, SERVICE_FW_GID); - ACCOUNT_DEBUG("chown result = [%d]", ret); - ret = chmod(account_db_jn_path, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); - ACCOUNT_DEBUG("chmod result = [%d]", ret); + //ret = chown(account_db_jn_path, SERVICE_FW_UID, SERVICE_FW_GID); + //ACCOUNT_DEBUG("chown result = [%d]", ret); + //ret = chmod(account_db_jn_path, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); + //ACCOUNT_DEBUG("chmod result = [%d]", ret); } else { if (mode == ACCOUNT_DB_OPEN_READWRITE) rc = db_util_open(account_db_path, &g_hAccountGlobalDB, DB_UTIL_REGISTER_HOOK_METHOD); -- 2.34.1