freebsd-skq/tests/sys/file
Kyle Evans 605c4cda2f close_range/closefrom: fix regression from close_range introduction
close_range will clamp the range between [0, fdp->fd_lastfile], but failed
to take into account that fdp->fd_lastfile can become -1 if all fds are
closed. =-( In this scenario, just return because there's nothing further we
can do at the moment.

Add a test case for this, fork() and simply closefrom(0) twice in the child;
on the second invocation, fdp->fd_lastfile == -1 and will trigger a panic
before this change.

X-MFC-With:	r359836
2020-04-13 17:55:31 +00:00
..
closefrom_test.c close_range/closefrom: fix regression from close_range introduction 2020-04-13 17:55:31 +00:00
dup_test.c Revert r337929 2018-08-16 22:04:00 +00:00
fcntlflags_test.c
flock_helper.c Revert r337929 2018-08-16 22:04:00 +00:00
flock_test.sh Make test scripts under tests/... non-executable 2017-08-08 04:59:16 +00:00
ftruncate_test.c Tweak r319058 slightly 2017-05-28 17:50:29 +00:00
Makefile
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
newfileops_on_fork_test.c Allow changing the test PORT at compile-time. 2017-07-31 22:00:27 +00:00