Date: Sat, 20 Jun 2009 15:41:18 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 164761 for review Message-ID: <200906201541.n5KFfISm022457@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=164761 Change 164761 by rwatson@rwatson_freebsd_capabilities on 2009/06/20 15:40:21 FreeBSD has closefrom(2), so no need for a local prototype. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability_host.c#21 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability_host.c#21 (text+ko) ==== @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability_host.c#20 $ + * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability_host.c#21 $ */ #include <sys/param.h> @@ -78,8 +78,6 @@ NULL, }; -int closefrom(int lowfd); - int lch_autosandbox_isenabled(__unused const char *servicename) { @@ -141,9 +139,7 @@ * Close the descriptors that we moved, as well as any others that * were left open by the caller. */ - if (closefrom(fd_count) < 0) - return (-1); - + closefrom(fd_count); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906201541.n5KFfISm022457>