From: Changgyu Choi Date: Mon, 5 Dec 2022 08:19:54 +0000 (+0900) Subject: Fix wrong filename paremeter X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8949377080e1b44818cbcb93261b1bb6f98ae7d7;p=platform%2Fcore%2Fappfw%2Fpkgmgr-tool.git Fix wrong filename paremeter If tool try to remove the directory, the parameter is wrong. This patch changes the parameter by correcting it. Change-Id: If0332966b94d0520f50d1143812449104959f248 Signed-off-by: Changgyu Choi (cherry picked from commit dfbc252fd6c5fd3bc8a88968ec8ad562d5df2164) --- diff --git a/src/pkg_cleardata/pkg_cleardata.c b/src/pkg_cleardata/pkg_cleardata.c index 1127cfa..27ada21 100644 --- a/src/pkg_cleardata/pkg_cleardata.c +++ b/src/pkg_cleardata/pkg_cleardata.c @@ -449,7 +449,7 @@ static int __remove_file(const char *pkgid, const char *file_path) perror(filename); if (S_ISDIR(st_file_info.st_mode)) { - ret = __clear_dir(file_path); + ret = __clear_dir(filename); if (ret != 0) { LOGE("Couldn't remove the directory. errno : %d (%s)", errno, strerror_r(errno, buf, sizeof(buf)));