Don't use IFTODT macro.
authorNikolaus Rath <Nikolaus@rath.org>
Sun, 5 Jun 2016 14:45:35 +0000 (10:45 -0400)
committerNikolaus Rath <Nikolaus@rath.org>
Sun, 5 Jun 2016 16:25:44 +0000 (12:25 -0400)
commit738c7eb5f8ba1c45262c4fc8df4f2eb0a59a665c
treed11c17093863ef7737910e762f41d3e465d20741
parent7bb2bd7ed4ca0412b7a8409b49a031d388b92216
Don't use IFTODT macro.

IFTODT is provided by libc to convert from mode_t (as included in e.g.
struct fstat) to d_type (unsigned char element of struct dirent, as
returned by e.g. readdir). However, fuse actually uses a different
struct fuse_dirent with a "type" field of type uint32.
In other words, the semantics of (struct fuse_dirent).type are
not necessarily the same as those of (struct dirent).d_type.
lib/fuse_lowlevel.c