Skip to content
Snippets Groups Projects
Commit cd28f06b authored by Morris Jette's avatar Morris Jette
Browse files

Merge branch 'slurm-2.3'

parents c2a341f5 cf81b117
No related branches found
No related tags found
No related merge requests found
...@@ -244,7 +244,8 @@ documents those changes that are of interest to users and admins. ...@@ -244,7 +244,8 @@ documents those changes that are of interest to users and admins.
and time limit where it was previously set by an admin. and time limit where it was previously set by an admin.
-- Fix issue where log message is more than 256 chars and then has a format. -- Fix issue where log message is more than 256 chars and then has a format.
-- Fix sched/wiki2 to support job account name, gres, partition name, wckey, -- Fix sched/wiki2 to support job account name, gres, partition name, wckey,
or working directory that contains "#" (a job record separator). or working directory that contains "#" (a job record separator). Also fix
for wckey or working directory that contains a double quote '\"'.
-- CRAY - fix for handling memory requests from user for an allocation. -- CRAY - fix for handling memory requests from user for an allocation.
-- Add support for switches parameter to the job_submit/lua plugin. Work by -- Add support for switches parameter to the job_submit/lua plugin. Work by
Par Andersson, NSC. Par Andersson, NSC.
......
...@@ -326,8 +326,16 @@ static char * _dump_job(struct job_record *job_ptr, time_t update_time) ...@@ -326,8 +326,16 @@ static char * _dump_job(struct job_record *job_ptr, time_t update_time)
if (!IS_JOB_FINISHED(job_ptr) && job_ptr->details && if (!IS_JOB_FINISHED(job_ptr) && job_ptr->details &&
job_ptr->details->work_dir) { job_ptr->details->work_dir) {
snprintf(tmp, sizeof(tmp), "IWD=\"%s\";", if ((quote = strchr(job_ptr->details->work_dir, (int) '\"'))) {
job_ptr->details->work_dir); /* Moab does not like strings containing a quote */
*quote = '\0';
snprintf(tmp, sizeof(tmp), "IWD=\"%s\";",
job_ptr->details->work_dir);
*quote = '\"';
} else {
snprintf(tmp, sizeof(tmp), "IWD=\"%s\";",
job_ptr->details->work_dir);
}
xstrcat(buf, tmp); xstrcat(buf, tmp);
} }
...@@ -340,7 +348,17 @@ static char * _dump_job(struct job_record *job_ptr, time_t update_time) ...@@ -340,7 +348,17 @@ static char * _dump_job(struct job_record *job_ptr, time_t update_time)
} }
if (job_ptr->wckey) { if (job_ptr->wckey) {
snprintf(tmp, sizeof(tmp),"WCKEY=\"%s\";", job_ptr->wckey); if ((quote = strchr(job_ptr->wckey, (int) '\"'))) {
/* Moab does not like strings containing a quote */
*quote = '\0';
snprintf(tmp, sizeof(tmp),
"WCKEY=\"%s\";", job_ptr->wckey);
*quote = '\"';
xstrcat(buf, tmp);
} else {
snprintf(tmp, sizeof(tmp),
"WCKEY=\"%s\";", job_ptr->wckey);
}
xstrcat(buf, tmp); xstrcat(buf, tmp);
} }
......
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