Remove dead code.
* libmisc/find_new_sub_gids.c: Remove dead code. find_new_sub_gids() is always called with *range_count set to 0. It's more difficult to keep the subordinate GIDs and UIDs synchronized, than for the user's UID/GId because the count of subordinate IDs may differ. * libmisc/find_new_sub_uids.c: Likewise. * lib/subordinateio.h, lib/subordinateio.c: Remove APIs that are no more needed: is_sub_uid_range_free(), is_sub_gid_range_free(), is_range_free().
This commit is contained in:
@@ -68,14 +68,6 @@ int find_new_sub_gids (const char *owner,
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Is there a preferred range that works? */
|
||||
if ((*range_count != 0) &&
|
||||
(*range_start >= min) &&
|
||||
(((*range_start) + (*range_count) - 1) <= max) &&
|
||||
is_sub_gid_range_free(*range_start, *range_count)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
start = sub_gid_find_free_range(min, max, count);
|
||||
if (start == (gid_t)-1) {
|
||||
fprintf (stderr,
|
||||
|
Reference in New Issue
Block a user