1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Fix compilation of fstat.

The udev should now be obtained from the dosmount instead of the denode.
This commit is contained in:
Ed Schouten 2009-02-28 10:40:37 +00:00
parent 6cf4a02c5e
commit c2c1433327
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189150

View File

@ -110,7 +110,7 @@ msdosfs_filestat(struct vnode *vp, struct filestat *fsp)
mnt->kptr = denode.de_pmp;
}
fsp->fsid = dev2udev(denode.de_dev);
fsp->fsid = dev2udev(mnt->data.pm_dev);
fsp->mode = 0555;
fsp->mode |= denode.de_Attributes & ATTR_READONLY ? 0 : 0222;
fsp->mode &= mnt->data.pm_mask;