From: Sangyoon Jang Date: Mon, 17 Aug 2015 07:56:07 +0000 (+0900) Subject: Fix pkg_privilege X-Git-Tag: accepted/tizen/mobile/20150817.134152^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10bf96be5fc4cf7e791c3b1abce2ed6421d6adec;p=platform%2Fcore%2Fappfw%2Fslp-pkgmgr.git Fix pkg_privilege fix getting app root path installer now creates directory as Tizen 2.3 Change-Id: Iacfde3ccd7811f7633bfcd80bdbed1a58dd067a2 Signed-off-by: Sangyoon Jang --- diff --git a/tool/pkg_privilege.c b/tool/pkg_privilege.c index 44ec833..9ff04ca 100644 --- a/tool/pkg_privilege.c +++ b/tool/pkg_privilege.c @@ -15,11 +15,7 @@ static const char *_get_path(const char *pkgid, const char *appid, uid_t uid) char buf[BUFSIZE]; const char *path; - /* TODO: unify application directory layout */ - if (uid == OWNER_ROOT || uid == GLOBAL_USER) - snprintf(buf, BUFSIZE - 1, "%s", pkgid); - else - snprintf(buf, BUFSIZE - 1, "%s/%s", pkgid, appid); + snprintf(buf, sizeof(buf), "%s", pkgid); tzplatform_set_user(uid); path = tzplatform_mkpath((uid == OWNER_ROOT || uid == GLOBAL_USER) ?