summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-05-26 20:07:57 +0000
committerphk <phk@FreeBSD.org>2001-05-26 20:07:57 +0000
commit89034502d17e36e00472ddb435b5438dc20fe8f8 (patch)
treed7dea49f008312b7e57db6ef9c1fbf13ab928975 /sys/fs
parent69376917898375a29aec49173210a6130a26c667 (diff)
downloadFreeBSD-src-89034502d17e36e00472ddb435b5438dc20fe8f8.zip
FreeBSD-src-89034502d17e36e00472ddb435b5438dc20fe8f8.tar.gz
Don't copy the trailing zero in readlink, it confuses namei().
PR: 27656
Diffstat (limited to 'sys/fs')
-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 7be4970..bbc14dc 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -552,7 +552,7 @@ devfs_readlink(ap)
struct devfs_dirent *de;
de = ap->a_vp->v_data;
- error = uiomove(de->de_symlink, strlen(de->de_symlink) + 1, ap->a_uio);
+ error = uiomove(de->de_symlink, strlen(de->de_symlink), ap->a_uio);
return (error);
}
OpenPOWER on IntegriCloud