Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Oct 2009 13:32:47 GMT
From:      Jonathan Anderson <jona@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 169761 for review
Message-ID:  <200910241332.n9ODWlnG099868@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

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;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910241332.n9ODWlnG099868>