Don't copy the trailing zero in readlink, it confuses namei().
PR: 27656
This commit is contained in:
parent
7cb8e4d277
commit
e33457d7eb
@ -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