dtbtool: fix for filesystems that don't return d_type from readdir

readdir() doesn't return d_type for all filesystems, in particular XFS
doesn't fill in this field. fix by using stat() instead of d_type to
determine if a dtb is a regular file. code is also rearranged slightly
to avoid doing a redundant stat().

Change-Id: I26b402f517cf8ecefa78d8ae45e51219b333b682
1 file changed
tree: dd7136733609f36ff4731fffab638c5a15410fc2
  1. cryptfs_hw/
  2. dtbtool/
  3. init/
  4. power/
  5. Android.mk
  6. README.md
README.md

Generic common qcom configuration tools

Copyright 2014 - The CyanogenMod Project