diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 91220a3517..2882aa8b00 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -3807,12 +3807,8 @@ static bool check_dir(const char *dirname) | |||
3807 | 3807 | ||
3808 | /* check for a database.ignore file */ | 3808 | /* check for a database.ignore file */ |
3809 | snprintf(newpath, MAX_PATH, "%s/database.ignore", dirname); | 3809 | snprintf(newpath, MAX_PATH, "%s/database.ignore", dirname); |
3810 | len = open(newpath, O_RDONLY); | 3810 | if(file_exists(newpath)) |
3811 | if (len >= 0) | ||
3812 | { | ||
3813 | close(len); | ||
3814 | return false; | 3811 | return false; |
3815 | } | ||
3816 | 3812 | ||
3817 | /* Recursively scan the dir. */ | 3813 | /* Recursively scan the dir. */ |
3818 | #ifdef __PCTOOL__ | 3814 | #ifdef __PCTOOL__ |