Add support for symbolic links for product folders
Fixes http://code.google.com/p/android/issues/detail?id=2116
diff --git a/tools/findleaves.sh b/tools/findleaves.sh
index 7cc0fa7..403ea96 100755
--- a/tools/findleaves.sh
+++ b/tools/findleaves.sh
@@ -86,7 +86,7 @@
# Print out all files that match, as long as the path isn't explicitly
# pruned. This will print out extraneous results from directories whose
# parents have a match. These are filtered out by the awk script below.
-find "${@:0:$nargs}" $findargs -type f -name "$filename" -print |
+find -L "${@:0:$nargs}" $findargs -type f -name "$filename" -print |
# Only pass along the directory of each match.
sed -e 's/\/[^\/]*$/\//' |