freebsd-dev/contrib/netbsd-tests/fs
Enji Cooper 20a4ce8bf2 Redo fix for CID 979581
The previous change was flawed in terms of how it calculated the
buffer length for the sockaddr_un object. Use SUN_LEN where
appropriate and mute the Coverity complaint by using memset(.., 0, ..)
to zero out the entire structure instead of setting .sun_len to a bogus
value and strlcpy'ing in the contents of argv[1].

SUN_LEN is now being passed to bind(2) as well. For some odd reason
this wasn't flagged as a bug with Coverity.

Reported by:	jilles, jmallett
MFC after:	2 days
X-MFC with:	r311233
2017-01-05 07:46:57 +00:00
..
cd9660
common
ffs
fifofs
hfs
kernfs
lfs
msdosfs
nfs
nullfs
psshfs
ptyfs
puffs
tmpfs Redo fix for CID 979581 2017-01-05 07:46:57 +00:00
umapfs
union
vfs
zfs
h_funcs.subr Port contrib/netbsd-tests/fs/h_funcs.subr to FreeBSD 2016-09-20 16:28:57 +00:00