diff options
| author | Alexander Levin <al.le@rockbox.org> | 2010-12-25 21:38:42 +0000 |
|---|---|---|
| committer | Alexander Levin <al.le@rockbox.org> | 2010-12-25 21:38:42 +0000 |
| commit | a0516f036f3ab2faaca055ea7a8691ddcb3632f8 (patch) | |
| tree | 93eb309801322e955d32cc78e0eeb647fcf708f4 | |
| parent | de317d46dc02ef3660ce2480998f9fbe4ef4e677 (diff) | |
| download | rockbox-a0516f036f3ab2faaca055ea7a8691ddcb3632f8.zip rockbox-a0516f036f3ab2faaca055ea7a8691ddcb3632f8.tar.gz rockbox-a0516f036f3ab2faaca055ea7a8691ddcb3632f8.tar.bz2 rockbox-a0516f036f3ab2faaca055ea7a8691ddcb3632f8.tar.xz | |
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
| -rw-r--r-- | apps/plugins/disktidy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/disktidy.c b/apps/plugins/disktidy.c index 141773a..2e8ece5 100644 --- a/apps/plugins/disktidy.c +++ b/apps/plugins/disktidy.c @@ -179,7 +179,8 @@ bool tidy_remove_item(char *item, int attr) return false; if (attr&ATTR_DIRECTORY) ret = tidy_types[i].directory; - else ret = true; + else + ret = !tidy_types[i].directory; } } return ret; |