PERFORCE change 75966 for review

Andrew Reisse areisse at FreeBSD.org
Mon Apr 25 20:07:12 GMT 2005


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

Change 75966 by areisse at areisse_ibook on 2005/04/25 20:06:16

	A routine with the checkaccess flag needs a trailer.
	The return code isn't always in the out structure.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin7/src/darwin/bootstrap_cmds/migcom.tproj/routine.c#4 edit
.. //depot/projects/trustedbsd/sedarwin7/src/darwin/bootstrap_cmds/migcom.tproj/server.c#4 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin7/src/darwin/bootstrap_cmds/migcom.tproj/routine.c#4 (text+ko) ====

@@ -1819,7 +1819,8 @@
     if (mig_errors > 0) 
         fatal("%d errors found. Abort.\n", mig_errors);
 
-    rt->rtServerImpl  = rtCountMask(rt->rtArgs, akbServerImplicit);
+    rt->rtServerImpl  = rtCountMask(rt->rtArgs, akbServerImplicit)
+	+ rt->rtCheckAccess;
     rt->rtUserImpl = rtCountMask(rt->rtArgs, akbUserImplicit);
     /*
      * ASSUMPTION:

==== //depot/projects/trustedbsd/sedarwin7/src/darwin/bootstrap_cmds/migcom.tproj/server.c#4 (text+ko) ====

@@ -1506,7 +1506,9 @@
     fprintf(file, ");\n");
 
     if (rt->rtCheckAccess)
-	fprintf(file, "\t} else\n\t  OutP->%s = KERN_NO_ACCESS;\n", arg->argMsgField);
+	fprintf(file, "\t} else\n\t  %s%s = KERN_NO_ACCESS;\n",
+		akCheck(arg->argKind, akbVarNeeded) ? "" : "OutP->",
+		arg->argMsgField);
 }
 
 static void
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list