summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/compat/linux/linux_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c
index 53cbf32..75364fb 100644
--- a/sys/compat/linux/linux_stats.c
+++ b/sys/compat/linux/linux_stats.c
@@ -124,7 +124,7 @@ newstat_copyout(struct stat *buf, void *ubuf)
(dev = udev2dev(buf->st_rdev, 0)) != NODEV) {
cdevsw = devsw(dev);
if (cdevsw != NULL && (cdevsw->d_flags & D_DISK)) {
- tbuf.stat_mode &= ~S_IFCHR;
+ tbuf.stat_mode &= ~S_IFMT;
tbuf.stat_mode |= S_IFBLK;
/* XXX this may not be quite right */
OpenPOWER on IntegriCloud