summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-19 19:09:52 +0000
committerphk <phk@FreeBSD.org>2004-02-19 19:09:52 +0000
commitdf260dfa170b6061cc2863b078b6da814972e9e6 (patch)
treef943cd71bf5cc6926daa11d04240c31e5731eec2
parentbfa75b69775d5df8362e05aa52bd39c9c332a655 (diff)
downloadFreeBSD-src-df260dfa170b6061cc2863b078b6da814972e9e6.zip
FreeBSD-src-df260dfa170b6061cc2863b078b6da814972e9e6.tar.gz
Report the correct length for symlink entries.
-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 8f03714..e0f192f 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
OpenPOWER on IntegriCloud