mjg 1e0d3fae01 Unbreak handling of descriptors opened with O_EXEC by fexecve(2).
While here return EBADF for descriptors opened for writing (previously it was ETXTBSY).

Add fgetvp_exec function which performs appropriate checks.

PR:		kern/169651
In collaboration with:	kib
Approved by:	trasz (mentor)
MFC after:	1 week
2012-07-08 00:51:38 +00:00
..
2012-06-27 16:15:13 +00:00
2012-07-03 08:03:07 +00:00
2012-05-23 06:49:50 +00:00
2012-07-02 14:03:19 +00:00
2012-06-11 17:42:39 +00:00
2012-07-06 23:17:30 +00:00
2012-02-28 15:07:05 +00:00
2012-04-16 10:33:46 +00:00