fix bug 24/91324/2 accepted/tizen/3.0/common/20161114.110019 accepted/tizen/3.0/mobile/20161028.143055 accepted/tizen/common/20161010.145727 accepted/tizen/mobile/20161011.233849 submit/tizen/20161010.015747 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.092423 submit/tizen_3.0_common/20161104.104000
authorSEUNGTAEK HAN <s.t.han@samsung.com>
Fri, 7 Oct 2016 04:59:33 +0000 (13:59 +0900)
committerSEUNGTAEK HAN <s.t.han@samsung.com>
Mon, 10 Oct 2016 04:35:26 +0000 (13:35 +0900)
Change-Id: I5fdbd570c3aca9acab717d6022484940449d160f

server/src/CynaraService.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 19db318..095c435
@@ -224,7 +224,7 @@ CynaraService::updateDb(cynara_monitor_entry **monitor_entries)
                                PG_LOGD("App ID: [%s]", client);
                        }
 
-                       // get package ID from app ID                   
+                       // get package ID from app ID
                        pkgmgrinfo_appinfo_h pkgmgrinfo_appinfo;
                        if (userId == GLOBAL_USER) {
                                res = pkgmgrinfo_appinfo_get_appinfo(appId.c_str(), &pkgmgrinfo_appinfo);
@@ -278,8 +278,9 @@ CynaraService::updateDb(cynara_monitor_entry **monitor_entries)
                                                userId = atoi(user);
 
                        res = security_manager_identify_app_from_cynara_client(client, &pkg_name, &app_name);
-                       if (res != PRIV_GUARD_ERROR_NO_DATA) {
-                               PG_LOGE("Failed to security_manager_identify_app_from_cynara_client()");
+                       if (res != SECURITY_MANAGER_SUCCESS) {
+                                       pkg_name = strdup(client);
+                                       PG_LOGE("Failed to do security_manager_identify_app_from_cynara_client [%d]", res);
                        }
 
                        // check pkg ID