From owner-p4-projects@FreeBSD.ORG Thu Jun 9 04:50:13 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B0EFC16A420; Thu, 9 Jun 2005 04:50:12 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ACA316A41C for ; Thu, 9 Jun 2005 04:50:12 +0000 (GMT) (envelope-from csjp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64AC343D48 for ; Thu, 9 Jun 2005 04:50:12 +0000 (GMT) (envelope-from csjp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j594oC2j094547 for ; Thu, 9 Jun 2005 04:50:12 GMT (envelope-from csjp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j594oCAk094544 for perforce@freebsd.org; Thu, 9 Jun 2005 04:50:12 GMT (envelope-from csjp@freebsd.org) Date: Thu, 9 Jun 2005 04:50:12 GMT Message-Id: <200506090450.j594oCAk094544@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to csjp@freebsd.org using -f From: "Christian S.J. Peron" To: Perforce Change Reviews Cc: Subject: PERFORCE change 78223 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2005 04:50:13 -0000 http://perforce.freebsd.org/chv.cgi?CH=78223 Change 78223 by csjp@csjp_xor on 2005/06/09 04:49:14 Be sure to propagate the error generated by the mac_syscall_enter entry back to the system call so we know there was a failure. Affected files ... .. //depot/projects/trustedbsd/mac/sys/i386/i386/trap.c#37 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/i386/i386/trap.c#37 (text+ko) ==== @@ -980,6 +980,8 @@ mac_error = mac_syscall_enter(td, args, code); if (mac_error == 0) error = (*callp->sy_call)(td, args); + else + error = mac_error; mac_syscall_exit(td, args, code, error, mac_error); #else error = (*callp->sy_call)(td, args);