Fix ail_initdb binary 75/27675/2 accepted/tizen/common/20140917.103440 submit/tizen_common/20140917.103011 submit/tizen_ivi/20140919.000000
authorBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Wed, 17 Sep 2014 10:22:55 +0000 (12:22 +0200)
committerBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Wed, 17 Sep 2014 10:27:39 +0000 (12:27 +0200)
Remove useless __is_authorized call

Change-Id: Ibed60441ca369dcd134f415f14d41c0bfbf585d5
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
tool/src/initdb.c

index 043dd4d..db69aa7 100755 (executable)
@@ -263,15 +263,14 @@ int main(int argc, char *argv[])
                _E("cannot load usr desktop directory.");
        }
 
-       if (__is_authorized()) {
-               ret = initdb_change_perm(APP_INFO_DB_FILE);
-               if (ret == AIL_ERROR_FAIL) {
-                       _E("cannot chown.");
-               }
-               setuid(OWNER_ROOT);
-               SET_DEFAULT_LABEL(APP_INFO_DB_FILE);
-               SET_DEFAULT_LABEL(APP_INFO_DB_FILE_JOURNAL);
+       setuid(OWNER_ROOT);
+       ret = initdb_change_perm(APP_INFO_DB_FILE);
+       if (ret == AIL_ERROR_FAIL) {
+               _E("cannot chown.");
        }
+       SET_DEFAULT_LABEL(APP_INFO_DB_FILE);
+       SET_DEFAULT_LABEL(APP_INFO_DB_FILE_JOURNAL);
+
        return AIL_ERROR_OK;
 }