summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2014-10-22 00:23:43 +0000
committermjg <mjg@FreeBSD.org>2014-10-22 00:23:43 +0000
commit2ebe66c2905234e9e3b5057b47542a9b61d7144c (patch)
tree6a36b43cbe03e6686b72f3132ca176603d8ccb7d /contrib/netbsd-tests
parent4386bf043d1b3107a4a480ad90128e1246fdb07c (diff)
downloadFreeBSD-src-2ebe66c2905234e9e3b5057b47542a9b61d7144c.zip
FreeBSD-src-2ebe66c2905234e9e3b5057b47542a9b61d7144c.tar.gz
filedesc: cleanup setugidsafety a little
Rename it to fdsetugidsafety for consistency with other functions. There is no need to take filedesc lock if not closing any files. The loop has to verify each file and we are guaranteed fdtable has space for at least 20 fds. As such there is no need to check fd_lastfile. While here tidy up is_unsafe.
Diffstat (limited to 'contrib/netbsd-tests')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud