From a0516f036f3ab2faaca055ea7a8691ddcb3632f8 Mon Sep 17 00:00:00 2001 From: Alexander Levin Date: Sat, 25 Dec 2010 21:38:42 +0000 Subject: [PATCH] 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(-) diff --git a/apps/plugins/disktidy.c b/apps/plugins/disktidy.c index 141773aa17..2e8ece538c 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; -- 2.11.4.GIT