summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-02-28 10:40:37 +0000
committered <ed@FreeBSD.org>2009-02-28 10:40:37 +0000
commit00646e6e144be3a350b5f99a9394235bc93bc096 (patch)
tree69efe2499fc6894fbfe8df5e1ddf89c7a163218c /usr.bin/fstat
parentf05698585dfff301fe972774bb632c6bdb28da90 (diff)
downloadFreeBSD-src-00646e6e144be3a350b5f99a9394235bc93bc096.zip
FreeBSD-src-00646e6e144be3a350b5f99a9394235bc93bc096.tar.gz
Fix compilation of fstat.
The udev should now be obtained from the dosmount instead of the denode.
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r--usr.bin/fstat/msdosfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fstat/msdosfs.c b/usr.bin/fstat/msdosfs.c
index 5bae63e..7f80499 100644
--- a/usr.bin/fstat/msdosfs.c
+++ b/usr.bin/fstat/msdosfs.c
@@ -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;
OpenPOWER on IntegriCloud