Fix pkg_privilege 45/46145/1 accepted/tizen/mobile/20150817.134152 accepted/tizen/tv/20150817.134535 accepted/tizen/wearable/20150817.134816 submit/tizen/20150817.084057
authorSangyoon Jang <s89.jang@samsung.com>
Mon, 17 Aug 2015 07:56:07 +0000 (16:56 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 17 Aug 2015 07:56:07 +0000 (16:56 +0900)
fix getting app root path
installer now creates directory as Tizen 2.3

Change-Id: Iacfde3ccd7811f7633bfcd80bdbed1a58dd067a2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
tool/pkg_privilege.c

index 44ec833..9ff04ca 100644 (file)
@@ -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) ?