Skip to content
Snippets Groups Projects
Commit e3983ee4 authored by Mark Grondona's avatar Mark Grondona
Browse files

o be sure to initialize job->gid in batch/job_create()

parent 0af4053d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment