diff options
| author | Paul Richards <paul@FreeBSD.org> | 2001-06-04 03:39:14 +0000 |
|---|---|---|
| committer | Paul Richards <paul@FreeBSD.org> | 2001-06-04 03:39:14 +0000 |
| commit | 34c4099770dacb6527715d4e803d88cc8b6fe6bd (patch) | |
| tree | cca6a19da4683ebeb2752b387226639bc89ac16b /sys/compat | |
| parent | f20688d55c9797c8df836c36b45abbe233c0329e (diff) | |
Notes
Diffstat (limited to 'sys/compat')
| -rw-r--r-- | sys/compat/linux/linux_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index 53cbf3202cc3..75364fb3d178 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 */ |
