diff options
author | phk <phk@FreeBSD.org> | 2001-05-26 20:07:57 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-05-26 20:07:57 +0000 |
commit | 89034502d17e36e00472ddb435b5438dc20fe8f8 (patch) | |
tree | d7dea49f008312b7e57db6ef9c1fbf13ab928975 /sys | |
parent | 69376917898375a29aec49173210a6130a26c667 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/fs/devfs/devfs_vnops.c | 2 |
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); } |