From: Myungki Lee Date: Thu, 27 Apr 2017 12:33:51 +0000 (+0900) Subject: Changes to add caller_pkgname both app and daemon X-Git-Tag: submit/tizen_3.0/20170613.053340~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e154b284441bb77d736d2cb18ff192e85b01bbfe;p=platform%2Fcore%2Fapi%2Fnotification.git Changes to add caller_pkgname both app and daemon Change-Id: I873a1223d2689555c12dfda83c0847ee28881503 Signed-off-by: Myungki Lee --- diff --git a/src/notification.c b/src/notification.c index 407a2ff3..deb72af9 100755 --- a/src/notification.c +++ b/src/notification.c @@ -1447,14 +1447,13 @@ static notification_h _notification_create(notification_type_e type) noti->timeout = 0; noti->event_flag = false; noti->is_translation = false; + noti->caller_pkgname = notification_get_pkgname_by_pid(); + if (noti->caller_pkgname == NULL) { + NOTIFICATION_ERR("get_pkgname_by_pid is failed"); + goto out; + } if (getuid() >= REGULAR_UID_MIN) { - noti->caller_pkgname = notification_get_pkgname_by_pid(); - if (noti->caller_pkgname == NULL) { - NOTIFICATION_ERR("get_pkgname_by_pid is failed"); - goto out; - } - err = aul_app_get_pkgid_bypid(getpid(), pkgid, sizeof(pkgid)); if (err != AUL_R_OK) { NOTIFICATION_ERR("get_pkgid_bypid is failed err[%d]", err);