Remove duplicate check.
* libmisc/find_new_sub_gids.c: Remove duplicate check (duplicate at least in its intent).
This commit is contained in:
parent
94c52130be
commit
ac53650da5
@ -1,3 +1,9 @@
|
||||
2013-08-06 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* libmisc/find_new_sub_gids.c: Remove duplicate check (duplicate
|
||||
at least in its intent).
|
||||
* libmisc/find_new_sub_uids.c: Likewise.
|
||||
|
||||
2013-08-06 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/usermod.c: Fix typos.
|
||||
|
@ -74,12 +74,6 @@ int find_new_sub_gids (const char *owner,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (max < (min + count)) {
|
||||
(void) fprintf (stderr,
|
||||
_("%s: Invalid configuration: SUB_GID_MIN (%lu), SUB_GID_MAX (%lu)\n"),
|
||||
Prog, min, max);
|
||||
return -1;
|
||||
}
|
||||
start = sub_gid_find_free_range(min, max, count);
|
||||
if (start == (gid_t)-1) {
|
||||
fprintf (stderr,
|
||||
|
@ -74,12 +74,6 @@ int find_new_sub_uids (const char *owner,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (max < (min + count)) {
|
||||
(void) fprintf (stderr,
|
||||
_("%s: Invalid configuration: SUB_UID_MIN (%lu), SUB_UID_MAX (%lu)\n"),
|
||||
Prog, min, max);
|
||||
return -1;
|
||||
}
|
||||
start = sub_uid_find_free_range(min, max, count);
|
||||
if (start == (uid_t)-1) {
|
||||
fprintf (stderr,
|
||||
|
Loading…
Reference in New Issue
Block a user