Skip to content
Snippets Groups Projects
Commit e883805e authored by Moe Jette's avatar Moe Jette
Browse files

Return different error code for requested jobid=0

parent 848cf78c
No related branches found
No related tags found
No related merge requests found
...@@ -2457,7 +2457,7 @@ static int _validate_job_desc(job_desc_msg_t * job_desc_msg, int allocate, ...@@ -2457,7 +2457,7 @@ static int _validate_job_desc(job_desc_msg_t * job_desc_msg, int allocate,
} }
if (job_desc_msg->job_id == 0) { if (job_desc_msg->job_id == 0) {
info("attempt by uid %u to set zero job_id", submit_uid); info("attempt by uid %u to set zero job_id", submit_uid);
return ESLURM_DUPLICATE_JOB_ID; return ESLURM_INVALID_JOB_ID;
} }
dup_job_ptr = find_job_record((uint32_t) job_desc_msg->job_id); dup_job_ptr = find_job_record((uint32_t) job_desc_msg->job_id);
if (dup_job_ptr && if (dup_job_ptr &&
......
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