diff options
author | cracauer <cracauer@FreeBSD.org> | 2005-07-09 18:30:31 +0000 |
---|---|---|
committer | cracauer <cracauer@FreeBSD.org> | 2005-07-09 18:30:31 +0000 |
commit | 86c0c5340cbbe487108839e49a623189834493c3 (patch) | |
tree | 88de5a6ffd47bd13bb5097830b9af73b8fa6bee1 | |
parent | 5347c3345e3e5d6903a225ccf0da3c83800f49ec (diff) | |
download | FreeBSD-src-86c0c5340cbbe487108839e49a623189834493c3.zip FreeBSD-src-86c0c5340cbbe487108839e49a623189834493c3.tar.gz |
Repair this:
ext2fs fails to set the device in the stat(2) system call.
Subsequently, that makes fts(3) fail, which goes as far as make ls(1)
fail (which uses fts) on ext2fs.
Approved by: re (Robert Watson <rwatson@FreeBSD.org>)
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_vnops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_vnops.c b/sys/gnu/fs/ext2fs/ext2_vnops.c index b97be20..30d3d57 100644 --- a/sys/gnu/fs/ext2fs/ext2_vnops.c +++ b/sys/gnu/fs/ext2fs/ext2_vnops.c @@ -346,6 +346,7 @@ ext2_getattr(ap) /* * Copy from inode table */ + vap->va_fsid = dev2udev(ip->i_devvp->v_rdev); vap->va_fileid = ip->i_number; vap->va_mode = ip->i_mode & ~IFMT; vap->va_nlink = ip->i_nlink; |