summaryrefslogtreecommitdiff
path: root/exec
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-20 19:51:27 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-20 19:51:27 +0000
commit806650d0e73748f17c31759163efd0f0a20d115d (patch)
tree37e38d65fb6753fc753dbf47cb7b5b7b534f5fc4 /exec
parent70c27d327f0223923026f88486cccea85b1bdfde (diff)
fixup
Diffstat (limited to 'exec')
-rw-r--r--exec/exec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/exec/exec.c b/exec/exec.c
index ff0e7836..07d0f20d 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -1312,10 +1312,7 @@ do_exec (file_t file,
{
/* Ask the proc server for the proc port for this task. */
mach_port_t new;
- uid_t euidbuf[10], egidbuf[10], auidbuf[10], agidbuf[10];
- uid_t *euids, *egids, *auids, *agids;
- size_t neuids, negids, nauids, nagids;
-
+
e.error = proc_task2proc (procserver, newtask, &new);
if (e.error)
goto stdout;
@@ -1548,6 +1545,10 @@ do_exec (file_t file,
/* Make sure the proc server has the right idea of our identity. */
if (secure)
{
+ uid_t euidbuf[10], egidbuf[10], auidbuf[10], agidbuf[10];
+ uid_t *euids, *egids, *auids, *agids;
+ size_t neuids, negids, nauids, nagids;
+
/* Find out what our UID is from the auth server. */
neuids = negids = nauids = nagids = 10;
euids = euidbuf, egids = egidbuf;