projects
/
platform
/
core
/
appfw
/
pkgmgr-tool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1c7e4e
)
Fix wrong filename paremeter
40/320140/1
tizen_6.0
author
Changgyu Choi
<changyu.choi@samsung.com>
Mon, 5 Dec 2022 08:19:54 +0000
(17:19 +0900)
committer
Changgyu Choi
<changyu.choi@samsung.com>
Fri, 8 Nov 2024 06:24:17 +0000
(15:24 +0900)
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 <changyu.choi@samsung.com>
src/pkg_cleardata/pkg_cleardata.c
patch
|
blob
|
history
diff --git
a/src/pkg_cleardata/pkg_cleardata.c
b/src/pkg_cleardata/pkg_cleardata.c
index 203366fdbab7652600868c021254ccc3f425aa09..ebbf6b80440a781875a205614f5d4badde3050c4 100644
(file)
--- a/
src/pkg_cleardata/pkg_cleardata.c
+++ b/
src/pkg_cleardata/pkg_cleardata.c
@@
-433,7
+433,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(file
name
);
if (ret != 0) {
LOGE("Couldn't remove the directory. errno : %d (%s)",
errno, strerror_r(errno, buf, sizeof(buf)));