From: Changgyu Choi Date: Mon, 5 Dec 2022 08:19:54 +0000 (+0900) Subject: Fix wrong filename paremeter X-Git-Tag: accepted/tizen/unified/20230117.140524~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dfbc252fd6c5fd3bc8a88968ec8ad562d5df2164;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 --- diff --git a/src/pkg_cleardata/pkg_cleardata.c b/src/pkg_cleardata/pkg_cleardata.c index 52a0888..0b4b250 100644 --- a/src/pkg_cleardata/pkg_cleardata.c +++ b/src/pkg_cleardata/pkg_cleardata.c @@ -425,7 +425,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)));