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>
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) ?