From e3983ee473966221b7c9f0d74284c61bb82a061d Mon Sep 17 00:00:00 2001 From: Mark Grondona <mgrondona@llnl.gov> Date: Thu, 13 Nov 2003 20:37:17 +0000 Subject: [PATCH] o be sure to initialize job->gid in batch/job_create() --- src/slurmd/job.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/slurmd/job.c b/src/slurmd/job.c index 09f997f76b0..5a7a78e149d 100644 --- a/src/slurmd/job.c +++ b/src/slurmd/job.c @@ -112,8 +112,9 @@ job_create(launch_tasks_request_msg_t *msg, slurm_addr *cli_addr) job->jobid = msg->job_id; job->stepid = msg->job_step_id; - job->uid = msg->uid; + job->uid = (uid_t) msg->uid; job->pwd = pwd; + job->gid = job->pwd->pw_gid; job->nprocs = msg->nprocs; job->nnodes = msg->nnodes; job->nodeid = msg->srun_node_id; @@ -198,7 +199,8 @@ job_batch_job_create(batch_job_launch_msg_t *msg) job->stepid = NO_VAL; job->batch = true; - job->uid = (uid_t)msg->uid; + job->uid = (uid_t) msg->uid; + job->gid = job->pwd->pw_gid; job->cwd = xstrdup(msg->work_dir); job->env = _array_copy(msg->envc, msg->environment); -- GitLab