From e7819ee57b3164f9ad1d06ea1567d7c1d0980b4d Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Wed, 8 Aug 2007 17:38:55 +0000 Subject: [PATCH] Disable user specifying jobid when sched/wiki2 configured (needed for Moab releases until early 2007). --- NEWS | 2 ++ src/slurmctld/job_mgr.c | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 1bcbba71230..9bba08b2350 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,8 @@ documents those changes that are of interest to users and admins. ============================= -- Added new srun option --pty to start job with pseudo terminal attached to task 0 (all other tasks have I/O discarded) + -- Disable user specifying jobid when sched/wiki2 configured (needed for + Moab releases until early 2007). * Changes in SLURM 1.3.0-pre1 ============================= diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c index 865d5f0e991..6482acd390c 100644 --- a/src/slurmctld/job_mgr.c +++ b/src/slurmctld/job_mgr.c @@ -2603,12 +2603,13 @@ static int _validate_job_desc(job_desc_msg_t * job_desc_msg, int allocate, static bool wiki_sched = false; static bool wiki_sched_test = false; - /* Permit normal user to specify job id only for sched/wiki - * and sched/wiki2 */ + /* Permit normal user to specify job id only for sched/wiki + * (Maui scheduler). This was also required with earlier + * versions of the Moab scheduler (wiki2), but was fixed + * in early 2007 to submit jobs as user root */ if (!wiki_sched_test) { char *sched_type = slurm_get_sched_type(); - if ((strcmp(sched_type, "sched/wiki") == 0) - || (strcmp(sched_type, "sched/wiki2") == 0)) + if (strcmp(sched_type, "sched/wiki") == 0) wiki_sched = true; xfree(sched_type); wiki_sched_test = true; -- GitLab