PERFORCE change 169761 for review

Jonathan Anderson jona at FreeBSD.org
Sat Oct 24 13:32:47 UTC 2009


http://p4web.freebsd.org/chv.cgi?CH=169761

Change 169761 by jona at 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;
 }
 


More information about the p4-projects mailing list