PERFORCE change 164761 for review

Robert Watson rwatson at FreeBSD.org
Sat Jun 20 15:41:19 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=164761

Change 164761 by rwatson at 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);
 }
 


More information about the p4-projects mailing list