From 71e4b03ed670f5ba3f42f1bcc80f05a87a3498be Mon Sep 17 00:00:00 2001 From: Fred Bauer Date: Sat, 5 Mar 2011 23:19:06 +0000 Subject: [PATCH] Follow symlink dirs on UI simulator git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29530 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/tagcache.c b/apps/tagcache.c index 3944fcb6bc..53d0a3bfcc 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -4351,6 +4351,7 @@ static bool check_dir(const char *dirname, int add_files) processed_dir_count++; if (info.attribute & ATTR_DIRECTORY) +#ifndef SIMULATOR { /* don't follow symlinks to dirs, but try to add it as a search root * this makes able to avoid looping in recursive symlinks */ if (info.attribute & ATTR_LINK) @@ -4358,6 +4359,9 @@ static bool check_dir(const char *dirname, int add_files) else check_dir(curpath, add_files); } +#else + check_dir(curpath, add_files); +#endif else if (add_files) { tc_stat.curentry = curpath;