diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c index 5155a9bd09a0fbac93187d43347521607ce78f62..20c1ecd2ba38c8acb71f1864b01b61db2a3a49d4 100644 --- a/src/slurmctld/job_mgr.c +++ b/src/slurmctld/job_mgr.c @@ -2038,7 +2038,7 @@ update_job (job_desc_msg_t * job_specs, uid_t uid) error ("update_job: job_id %u does not exist.", job_specs -> job_id); return ESLURM_INVALID_JOB_ID; } - if ( (uid == 0) || (uid = getuid ()) ) + if ( (uid == 0) || (uid == getuid ()) ) super_user = 1; if ( (job_ptr->user_id != uid) && (super_user == 0) ) {