Don't copy the trailing zero in readlink, it confuses namei().

PR:		27656
This commit is contained in:
phk 2001-05-26 20:07:57 +00:00
parent 7bdb1a37f9
commit c05737e516

View File

@ -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);
}