syscall: correctly pad with NUL in FreeBSD convertFromDirents11
We weren't writing a terminating NUL after dstDirent.Namlen bytes of dstDirent.Name. And we weren't filling the possible additional bytes until dstDirent.Reclen. Fixes #28131 Change-Id: Id691c25225795c0dbb0d7004bfca7bb7fc706de9 Reviewed-on: https://go-review.googlesource.com/c/141297 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by:Brad Fitzpatrick <bradfitz@golang.org>
Showing
Please
register
or
sign in
to comment