aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-02-19 19:09:52 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-02-19 19:09:52 +0000
commitbc55355956460d94ed0b91c2f2ba8e4f9aa765e2 (patch)
treef943cd71bf5cc6926daa11d04240c31e5731eec2
parent954c1f5807d6fdfbfac7bc1d21eea22d1c4d77dd (diff)
downloadsrc-bc55355956460d94ed0b91c2f2ba8e4f9aa765e2.tar.gz
src-bc55355956460d94ed0b91c2f2ba8e4f9aa765e2.zip
Report the correct length for symlink entries.
Notes
Notes: svn path=/head/; revision=126019
-rw-r--r--sys/fs/devfs/devfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index 8f03714d5f49..e0f192ffdb8c 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -224,7 +224,7 @@ devfs_getattr(ap)
vap->va_gid = de->de_gid;
vap->va_mode = de->de_mode;
if (vp->v_type == VLNK)
- vap->va_size = de->de_dirent->d_namlen;
+ vap->va_size = strlen(de->de_symlink);
else if (vp->v_type == VDIR)
vap->va_size = vap->va_bytes = DEV_BSIZE;
else