* lib/subordinateio.c (find_free_range): max is allowed for new
ranges.
+2013-08-15 Nicolas François <nicolas.francois@centraliens.net>
+
+ * lib/subordinateio.c (find_free_range): max is allowed for new
+ ranges.
+
2013-08-15 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/find_new_sub_gids.c: Remove dead code.
/* Find the top end of the hole before this range */
high = first;
- if (high > max)
- high = max;
+
+ /* Don't allocate IDs after max (included) */
+ if (high > max + 1) {
+ high = max + 1;
+ }
/* Is the hole before this range large enough? */
if ((high > low) && ((high - low) >= count))