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:
eec0bd3
)
Fix wrong filename paremeter
47/285047/1
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>
Mon, 5 Dec 2022 08:19:54 +0000
(17:19 +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 52a08882d600c9ee75eb25cecfb6ea34bb6248c4..0b4b2503ada88dd0edbfee9fd31f352c06a781e9 100644
(file)
--- 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(file
name
);
if (ret != 0) {
LOGE("Couldn't remove the directory. errno : %d (%s)",
errno, strerror_r(errno, buf, sizeof(buf)));