summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ifuse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index f117885..d8c6ddc 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -90,6 +90,14 @@ static int ifuse_getattr(const char *path, struct stat *stbuf)
stbuf->st_mode = S_IFDIR;
} else if (!strcmp(info[i+1], "S_IFLNK")) {
stbuf->st_mode = S_IFLNK;
+ } else if (!strcmp(info[i+1], "S_IFBLK")) {
+ stbuf->st_mode = S_IFBLK;
+ } else if (!strcmp(info[i+1], "S_IFCHR")) {
+ stbuf->st_mode = S_IFCHR;
+ } else if (!strcmp(info[i+1], "S_IFIFO")) {
+ stbuf->st_mode = S_IFIFO;
+ } else if (!strcmp(info[i+1], "S_IFSOCK")) {
+ stbuf->st_mode = S_IFSOCK;
}
} else if (!strcmp(info[i], "st_nlink")) {
stbuf->st_nlink = atoi(info[i+1]);