diff options
author | mjg <mjg@FreeBSD.org> | 2014-10-22 00:23:43 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2014-10-22 00:23:43 +0000 |
commit | 2ebe66c2905234e9e3b5057b47542a9b61d7144c (patch) | |
tree | 6a36b43cbe03e6686b72f3132ca176603d8ccb7d /contrib/netbsd-tests/lib/libc/stdlib/t_getenv_thread.c | |
parent | 4386bf043d1b3107a4a480ad90128e1246fdb07c (diff) | |
download | FreeBSD-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/lib/libc/stdlib/t_getenv_thread.c')
0 files changed, 0 insertions, 0 deletions