From owner-p4-projects@FreeBSD.ORG Sat Oct 24 13:32:47 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 98B2E1065679; Sat, 24 Oct 2009 13:32:47 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CF35106566B for ; Sat, 24 Oct 2009 13:32:47 +0000 (UTC) (envelope-from jona@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4AC508FC08 for ; Sat, 24 Oct 2009 13:32:47 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n9ODWlTe099870 for ; Sat, 24 Oct 2009 13:32:47 GMT (envelope-from jona@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n9ODWlnG099868 for perforce@freebsd.org; Sat, 24 Oct 2009 13:32:47 GMT (envelope-from jona@FreeBSD.org) Date: Sat, 24 Oct 2009 13:32:47 GMT Message-Id: <200910241332.n9ODWlnG099868@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jona@FreeBSD.org using -f From: Jonathan Anderson To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 169761 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2009 13:32:47 -0000 http://p4web.freebsd.org/chv.cgi?CH=169761 Change 169761 by jona@jona-capsicum-kent on 2009/10/24 13:32:24 Since we're using write() rather than err(), we need to actually return something from cap_main() Affected files ... .. //depot/projects/trustedbsd/capabilities/src/lib/csu/common/crtbrand.c#3 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/lib/csu/common/crtbrand.c#3 (text+ko) ==== @@ -58,5 +58,6 @@ "ERROR: attempting to run a regular binary in capability mode.\n\nIf you wish to run a binary in a sandbox, you must provide a cap_main() function which takes the same arguments as main().\n"; write(2, warning, sizeof(warning)); + return 1; }