Date: Mon, 25 Apr 2005 20:07:12 GMT From: Andrew Reisse <areisse@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 75966 for review Message-ID: <200504252007.j3PK7CVN028684@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=75966 Change 75966 by areisse@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504252007.j3PK7CVN028684>