Skip to content
Snippets Groups Projects
Commit 11d35b81 authored by David J. Bremer's avatar David J. Bremer
Browse files

Labelled files per task were created with root permission

parent c2d704ee
No related branches found
No related tags found
No related merge requests found
......@@ -375,10 +375,6 @@ _setup_normal_io(slurmd_job_t *job)
if (io_init_tasks_stdio(job) != SLURM_SUCCESS)
return ESLURMD_IO_ERROR;
if (_reclaim_privileges(&sprivs) < 0)
error("sete{u/g}id(%lu/%lu): %m",
(u_long) sprivs.saved_uid, (u_long) sprivs.saved_gid);
/*
* MUST create the initial client object before starting
* the IO thread, or we risk losing stdout/err traffic.
......@@ -465,6 +461,10 @@ _setup_normal_io(slurmd_job_t *job)
}
}
if (_reclaim_privileges(&sprivs) < 0)
error("sete{u/g}id(%lu/%lu): %m",
(u_long) sprivs.saved_uid, (u_long) sprivs.saved_gid);
rc = io_initial_client_connect(srun, job, srun_stdout_tasks,
srun_stderr_tasks);
if (rc < 0)
......
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