hostfs: Use correct mask for file mode
authorRichard Weinberger <richard@nod.at>
Mon, 4 May 2015 12:50:29 +0000 (14:50 +0200)
committerRichard Weinberger <richard@nod.at>
Mon, 4 May 2015 12:50:29 +0000 (14:50 +0200)
commita718c92219b35e8a75175fde85c4566ac5730273
tree69b4b5ab9b19443b13c6368a39a91c3c78b9aa9c
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22
hostfs: Use correct mask for file mode

S_IFMT is obviously wrong and needs to be 0777.
We're interested in the file mode, not the type.

Fixes: b98b91029c (hostfs: No need to box and later unbox the file mode)
Reported-by: Markus Stenberg <markus.stenberg@iki.fi>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/hostfs/hostfs_kern.c