Fix wrong path of pkg_getsize 36/116736/4
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 28 Feb 2017 04:41:02 +0000 (13:41 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 28 Feb 2017 06:09:01 +0000 (15:09 +0900)
Change-Id: I8bca864316b82ad83f774d006e38a5ae5e6ecc8d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/pkg_getsize.c

index acec5d9..d3edd12 100644 (file)
@@ -287,7 +287,7 @@ static int __calculate_pkg_size_info(STORAGE_TYPE type, const char *pkgid,
                tzplatform_set_user(target_uid);
                snprintf(app_root_dir, MAX_PATH_LENGTH, "%s%s",
                        APP_BASE_EXTERNAL_PATH,
-                       tzplatform_mkpath(TZ_USER_NAME, pkgid));
+                       tzplatform_mkpath3(TZ_USER_NAME, "apps_rw", pkgid));
                tzplatform_reset_user();
        } else {
                LOGE("Invalid STORAGE_TYPE");