svn commit: r311233 - head/contrib/netbsd-tests/fs/tmpfs
Ngie Cooper
yaneurabeya at gmail.com
Thu Jan 5 06:35:21 UTC 2017
> On Jan 4, 2017, at 15:36, Jilles Tjoelker <jilles at stack.nl> wrote:
...
> It would be better to avoid naming the non-portable sun_len field if it
> is just to make Coverity happy. I suggest initializing the structure
> with designated initializers or memset().
>
> Apart from that, the value for sun_len is wrong; it should be the length
> of the whole structure and not just the sun_path part. Fortunately, the
> field is ignored by bind(), which uses the addrlen parameter instead.
>
> On a more general note, refactoring tests without a way to verify they
> have not been changed to always pass is risky :(
Yeah... agreed. Unfortunately, the interest in reviewing tests is low.. some people only care when they "break" :(..
In general, I try to test all of my changes carefully, but this item fell through the cracks, due to my poor memory about how sockaddr_un is structured.
Thank you for the input jilles and jmallett!
> --
> Jilles Tjoelker
More information about the svn-src-all
mailing list