diff options
author | Myungki Lee <mk5004.lee@samsung.com> | 2017-04-27 21:33:51 +0900 |
---|---|---|
committer | Myungki Lee <mk5004.lee@samsung.com> | 2017-04-27 22:05:02 +0900 |
commit | e154b284441bb77d736d2cb18ff192e85b01bbfe (patch) | |
tree | 02ceca9db18dcddb8ddd8b622889ee408a9f2ecc | |
parent | 8cd22103062d15b73ca0e4d1bc634771d0aa0a98 (diff) | |
download | notification-e154b284441bb77d736d2cb18ff192e85b01bbfe.tar.gz notification-e154b284441bb77d736d2cb18ff192e85b01bbfe.tar.bz2 notification-e154b284441bb77d736d2cb18ff192e85b01bbfe.zip |
Changes to add caller_pkgname both app and daemon
Change-Id: I873a1223d2689555c12dfda83c0847ee28881503
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rwxr-xr-x | src/notification.c | 11 |
1 files 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); |