mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
Fix issue #42: Skip base directories in bootclean.
Signed-off-by: Wang He <xw897002528@gmail.com> Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -118,9 +118,11 @@ static int fsck(int pass)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int do_clean(const char *fpath, const struct stat *UNUSED(sb), int UNUSED(tflag), struct FTW *UNUSED(ftwbuf))
|
||||
static int do_clean(const char *fpath, const struct stat *UNUSED(sb), int UNUSED(tflag), struct FTW *ftwbuf)
|
||||
{
|
||||
_d("Removing %s", fpath);
|
||||
if (ftwbuf->level == 0)
|
||||
return 1;
|
||||
|
||||
remove(fpath);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user