fix for internal UTC 04/88804/1
authorIckhee Woo <ickhee.woo@samsung.com>
Tue, 20 Sep 2016 14:21:23 +0000 (23:21 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Tue, 20 Sep 2016 14:21:23 +0000 (23:21 +0900)
Change-Id: I6afe0a6f484c093c55bc80941db829e93656247d
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
common/src/account_db_helper.c

index 3b324da..d69b3fd 100644 (file)
@@ -138,6 +138,16 @@ char *_account_get_current_appid(int pid, uid_t uid)
                        }
 
                        return appid_ret;
+               } else if (!g_strcmp0(cmdline, "/usr/apps/core-accounts-svc-tests/bin/tct-accounts-svc-core")) {
+            appid_ret = _account_dup_text("core.accounts-svc-tests");
+            _ACCOUNT_FREE(cmdline);
+
+            if (appid_ret == NULL) {
+                ACCOUNT_FATAL("Memory Allocation Failed");
+                return NULL;
+            }
+
+            return appid_ret;
                } else {
                        ACCOUNT_DEBUG("No app id\n");
                        _ACCOUNT_FREE(cmdline);