Follow symlink dirs on UI simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29530 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ab60101dd3
commit
71e4b03ed6
1 changed files with 4 additions and 0 deletions
|
@ -4351,6 +4351,7 @@ static bool check_dir(const char *dirname, int add_files)
|
||||||
|
|
||||||
processed_dir_count++;
|
processed_dir_count++;
|
||||||
if (info.attribute & ATTR_DIRECTORY)
|
if (info.attribute & ATTR_DIRECTORY)
|
||||||
|
#ifndef SIMULATOR
|
||||||
{ /* don't follow symlinks to dirs, but try to add it as a search root
|
{ /* don't follow symlinks to dirs, but try to add it as a search root
|
||||||
* this makes able to avoid looping in recursive symlinks */
|
* this makes able to avoid looping in recursive symlinks */
|
||||||
if (info.attribute & ATTR_LINK)
|
if (info.attribute & ATTR_LINK)
|
||||||
|
@ -4358,6 +4359,9 @@ static bool check_dir(const char *dirname, int add_files)
|
||||||
else
|
else
|
||||||
check_dir(curpath, add_files);
|
check_dir(curpath, add_files);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
check_dir(curpath, add_files);
|
||||||
|
#endif
|
||||||
else if (add_files)
|
else if (add_files)
|
||||||
{
|
{
|
||||||
tc_stat.curentry = curpath;
|
tc_stat.curentry = curpath;
|
||||||
|
|
Loading…
Reference in a new issue