From a0516f036f3ab2faaca055ea7a8691ddcb3632f8 Mon Sep 17 00:00:00 2001 From: Alexander Levin Date: Sat, 25 Dec 2010 21:38:42 +0000 Subject: 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 --- apps/plugins/disktidy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/plugins') 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; -- cgit v1.1