Remove duplicate check.

* libmisc/find_new_sub_gids.c: Remove duplicate check (duplicate
	at least in its intent).
This commit is contained in:
Nicolas François 2013-08-06 23:59:09 +02:00
parent 94c52130be
commit ac53650da5
3 changed files with 6 additions and 12 deletions

View File

@ -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> 2013-08-06 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Fix typos. * src/usermod.c: Fix typos.

View File

@ -74,12 +74,6 @@ int find_new_sub_gids (const char *owner,
return 0; 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); start = sub_gid_find_free_range(min, max, count);
if (start == (gid_t)-1) { if (start == (gid_t)-1) {
fprintf (stderr, fprintf (stderr,

View File

@ -74,12 +74,6 @@ int find_new_sub_uids (const char *owner,
return 0; 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); start = sub_uid_find_free_range(min, max, count);
if (start == (uid_t)-1) { if (start == (uid_t)-1) {
fprintf (stderr, fprintf (stderr,