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

PR:		27656
This commit is contained in:
Poul-Henning Kamp 2001-05-26 20:07:57 +00:00
parent 7cb8e4d277
commit e33457d7eb

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