]> granicus.if.org Git - shadow/commitdiff
Remove duplicate check.
authorNicolas François <nicolas.francois@centraliens.net>
Tue, 6 Aug 2013 21:59:09 +0000 (23:59 +0200)
committerNicolas François <nicolas.francois@centraliens.net>
Tue, 6 Aug 2013 21:59:09 +0000 (23:59 +0200)
* libmisc/find_new_sub_gids.c: Remove duplicate check (duplicate
at least in its intent).

ChangeLog
libmisc/find_new_sub_gids.c
libmisc/find_new_sub_uids.c

index 80127abe2b9d1bd04fdbc9bdfa4984eac0399e4e..1eebfcd4a057a9ee53f235adaf432d817ffd3b45 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index fd44978e943503a8f213a9e2118cbb52fd1fff08..8740b4488077a25c450d7f6331954c38543f9062 100644 (file)
@@ -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,
index b608c59d2b6afde4916d6553b62ad2d8b0f04ec0..e511ec14f99464074f72e5159060e7cb11200ea6 100644 (file)
@@ -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,