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

Merge branch 'slurm-2.6'

parents 9878cef1 ed4bc269
No related branches found
No related tags found
No related merge requests found
......@@ -134,6 +134,8 @@ documents those changes that are of interest to users and admins.
* Changes in Slurm 2.6.5
========================
-- Correction to hostlist parsing bug introduced in v2.6.4 for hostlists with
more than one numeric range in brackets (e.g. rack[0-3]_blade[0-63]").
* Changes in Slurm 2.6.4
========================
......
......@@ -1829,7 +1829,7 @@ _push_range_list(hostlist_t hl, char *prefix, struct _range *range,
if (((p = strrchr(tmp_prefix, '[')) != NULL) &&
((q = strrchr(p, ']')) != NULL)) {
struct _range *prefix_range;
struct _range *saved_range = range, *pre_range = prefix_range;
struct _range *saved_range = range, *pre_range;
unsigned long j, prefix_cnt = 0;
*p++ = '\0';
*q++ = '\0';
......@@ -1841,6 +1841,7 @@ _push_range_list(hostlist_t hl, char *prefix, struct _range *range,
xfree(prefix_range);
return -1; /* bad numeric expression */
}
pre_range = prefix_range;
for (i = 0; i < nr; i++) {
prefix_cnt += pre_range->hi - pre_range->lo + 1;
if (prefix_cnt > MAX_PREFIX_CNT) {
......
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