From ac53650da588d2a4d7519348a113dae913001be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Fran=C3=A7ois?= Date: Tue, 6 Aug 2013 23:59:09 +0200 Subject: [PATCH] Remove duplicate check. * libmisc/find_new_sub_gids.c: Remove duplicate check (duplicate at least in its intent). --- ChangeLog | 6 ++++++ libmisc/find_new_sub_gids.c | 6 ------ libmisc/find_new_sub_uids.c | 6 ------ 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 80127abe..1eebfcd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-08-06 Nicolas François + + * 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 * src/usermod.c: Fix typos. diff --git a/libmisc/find_new_sub_gids.c b/libmisc/find_new_sub_gids.c index fd44978e..8740b448 100644 --- a/libmisc/find_new_sub_gids.c +++ b/libmisc/find_new_sub_gids.c @@ -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, diff --git a/libmisc/find_new_sub_uids.c b/libmisc/find_new_sub_uids.c index b608c59d..e511ec14 100644 --- a/libmisc/find_new_sub_uids.c +++ b/libmisc/find_new_sub_uids.c @@ -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,