summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Bauer <fred.w.bauer@gmail.com>2011-03-05 23:19:06 +0000
committerFred Bauer <fred.w.bauer@gmail.com>2011-03-05 23:19:06 +0000
commit71e4b03ed670f5ba3f42f1bcc80f05a87a3498be (patch)
tree1ad26e3ba3df7d23eef2e4f4eea442e63557137a
parentab60101dd32239fddf8521abec363a55756f8f54 (diff)
downloadrockbox-71e4b03ed670f5ba3f42f1bcc80f05a87a3498be.zip
rockbox-71e4b03ed670f5ba3f42f1bcc80f05a87a3498be.tar.gz
rockbox-71e4b03ed670f5ba3f42f1bcc80f05a87a3498be.tar.bz2
rockbox-71e4b03ed670f5ba3f42f1bcc80f05a87a3498be.tar.xz
Follow symlink dirs on UI simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29530 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tagcache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 3944fcb..53d0a3b 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;