Skip to content
Snippets Groups Projects
Commit c99a7d9e authored by Don Lipari's avatar Don Lipari
Browse files

-- Fixed bug in slurmd.c based on patch from Ralph Bean

parent 6609c0f5
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ documents those changes that are of interest to users and admins. ...@@ -16,6 +16,7 @@ documents those changes that are of interest to users and admins.
the slurmdbd. the slurmdbd.
-- Fix bug in changing the nodes allocated to a running job and some node -- Fix bug in changing the nodes allocated to a running job and some node
names specified are invalid, avoid invalid memory reference. names specified are invalid, avoid invalid memory reference.
-- Fixed bug in slurmd.c based on patch from Ralph Bean
* Changes in SLURM 2.2.0.pre9 * Changes in SLURM 2.2.0.pre9
============================= =============================
......
...@@ -675,20 +675,19 @@ _free_and_set(char **confvar, char *newval) ...@@ -675,20 +675,19 @@ _free_and_set(char **confvar, char *newval)
*confvar = newval; *confvar = newval;
} }
/* Replace first "%h" in path string with actual hostname. /*
* Replace first "%h" in path string with actual hostname.
* Replace first "%n" in path string with NodeName. * Replace first "%n" in path string with NodeName.
*
* Make sure to call _massage_pathname AFTER conf->node_name has been
* fully initialized.
*/ */
static void static void
_massage_pathname(char **path) _massage_pathname(char **path)
{ {
if (conf->logfile == NULL) if (path && *path) {
return; if (conf->hostname)
xstrsubstitute(*path, "%h", conf->hostname);
xstrsubstitute(*path, "%h", conf->hostname); if (conf->node_name)
xstrsubstitute(*path, "%n", conf->node_name); xstrsubstitute(*path, "%n", conf->node_name);
}
} }
/* /*
......
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