commit | 006ae3fe7b499fd53e245fff03f0718f7b810c6d | [log] [tgz] |
---|---|---|
author | Robin Humble <plaguedbypenguins@gmail.com> | Sat May 03 16:34:22 2014 +1000 |
committer | Robin Humble <plaguedbypenguins@gmail.com> | Sat May 03 19:08:12 2014 +1000 |
tree | dd7136733609f36ff4731fffab638c5a15410fc2 | |
parent | aa892a978fed852217f457305a4e5097917b871f [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