From e154b284441bb77d736d2cb18ff192e85b01bbfe Mon Sep 17 00:00:00 2001 From: Myungki Lee Date: Thu, 27 Apr 2017 21:33:51 +0900 Subject: [PATCH] Changes to add caller_pkgname both app and daemon Change-Id: I873a1223d2689555c12dfda83c0847ee28881503 Signed-off-by: Myungki Lee --- src/notification.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/notification.c b/src/notification.c index 407a2ff..deb72af 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); -- 2.7.4