]> git.openfabrics.org - ~shefty/libibverbs.git/commit
Don't use d_type member of struct dirent
authorRoland Dreier <rolandd@cisco.com>
Thu, 11 Jan 2007 21:19:01 +0000 (13:19 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 11 Jan 2007 21:20:24 +0000 (13:20 -0800)
commitee461fd9bd435111a6813ba16b0c550cc793331c
tree59398c4f99541fffce4dd8efa74582e168f36a59
parent1460b78bac9d320f04f3e748ca324c4d831fb957
Don't use d_type member of struct dirent

On some filesystems (notably reiserfs), dent->d_type is always
DT_UNKNOWN.  Therefore libibverbs should use stat() to check file
types when scanning through directories rather than relying on the
d_type returned from readdir().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
src/init.c