commit | 9077ed091755479f8b4901489f70f28fabc6d5e8 | [log] [tgz] |
---|---|---|
author | Robin Humble <plaguedbypenguins@gmail.com> | Sat May 03 16:34:22 2014 +1000 |
committer | Jackeagle <jackeagle102@gmail.com> | Wed May 23 00:13:18 2018 -0400 |
tree | a9e29db320bec4fc6600f0f3ae7810989815cb4a | |
parent | 6fc97b789bdc62721b93cc8b910187fe77139b94 [diff] |
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