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>
(cherry picked from commit
dfbc252fd6c5fd3bc8a88968ec8ad562d5df2164)
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)));