PERFORCE change 168398 for review

Jonathan Anderson jona at FreeBSD.org
Thu Sep 10 11:10:37 UTC 2009


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

Change 168398 by jona at jona-trustedbsd-belle-vmware on 2009/09/10 11:09:58

	Set errno to ECANCELED when the user closes the powerbox

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/lib/libuserangel/libuserangel.c#17 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/lib/libuserangel/libuserangel.c#17 (text+ko) ====

@@ -440,6 +440,11 @@
 	if(!fdcountd) return -1;
 
 	if(ua_unmarshall_int(fdcountd, len) < 0) return -1;
+	if(*len == 0)
+	{
+		errno = ECANCELED;
+		return 0;
+	}
 
 	int buflen = 1024;
 	char buffer[buflen];


More information about the p4-projects mailing list