Merge pull request #403 from hallyn/2021-08-14/fixnosubuidbuild

useradd.c: Fix undeclared subuid_count when not using subids
This commit is contained in:
Serge Hallyn 2021-08-14 19:28:07 -05:00 committed by GitHub
commit 4bcbe13689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2418,9 +2418,9 @@ int main (int argc, char **argv)
#ifdef ENABLE_SUBIDS #ifdef ENABLE_SUBIDS
uid_t uid_min; uid_t uid_min;
uid_t uid_max; uid_t uid_max;
unsigned long subuid_count;
unsigned long subgid_count;
#endif #endif
unsigned long subuid_count = 0;
unsigned long subgid_count = 0;
/* /*
* Get my name so that I can use it to report errors. * Get my name so that I can use it to report errors.