Don't copy the trailing zero in readlink, it confuses namei().
PR: 27656
This commit is contained in:
parent
7bdb1a37f9
commit
c05737e516
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user