Revert modificatoin of journal file owner 60/142960/1 submit/tizen/20170808.050330
authorJooseok Song <seogii.song@samsung.com>
Tue, 8 Aug 2017 05:00:13 +0000 (14:00 +0900)
committerJooseok Song <seogii.song@samsung.com>
Tue, 8 Aug 2017 05:00:13 +0000 (14:00 +0900)
Change-Id: Ia8cb8455d2a7e7e41ee3e1985d7857bd0d0396d5

src/account_offline.c

index 20982f3540694737ff6deea8778d49b489c1a099..649b4b8573f1d9b3c917f4aa15f6bd521e68af5d 100644 (file)
@@ -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);