forked from len0rd/rockbox
disktidy: fix the situation where specifying that a dir should be deleted could lead to removing a file with that name
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28897 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
de317d46dc
commit
a0516f036f
1 changed files with 2 additions and 1 deletions
|
@ -179,7 +179,8 @@ bool tidy_remove_item(char *item, int attr)
|
||||||
return false;
|
return false;
|
||||||
if (attr&ATTR_DIRECTORY)
|
if (attr&ATTR_DIRECTORY)
|
||||||
ret = tidy_types[i].directory;
|
ret = tidy_types[i].directory;
|
||||||
else ret = true;
|
else
|
||||||
|
ret = !tidy_types[i].directory;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue