From: Jooseok Song Date: Tue, 8 Aug 2017 05:00:13 +0000 (+0900) Subject: Revert modificatoin of journal file owner X-Git-Tag: submit/tizen/20170808.050330^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F60%2F142960%2F1;p=platform%2Fcore%2Fapi%2Flibaccount-service.git Revert modificatoin of journal file owner Change-Id: Ia8cb8455d2a7e7e41ee3e1985d7857bd0d0396d5 --- 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);