forked from pool/shadow
b4a2128e54
OBS-URL: https://build.opensuse.org/request/show/398913 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=21
24 lines
697 B
Diff
24 lines
697 B
Diff
--- src/useradd.c
|
|
+++ src/useradd.c
|
|
@@ -2054,8 +2054,8 @@ int main (int argc, char **argv)
|
|
#endif /* ACCT_TOOLS_SETUID */
|
|
|
|
/* Needed for userns check */
|
|
- uid_t uid_min = (uid_t) getdef_ulong ("UID_MIN", 1000UL);
|
|
- uid_t uid_max = (uid_t) getdef_ulong ("UID_MAX", 60000UL);
|
|
+ uid_t uid_min;
|
|
+ uid_t uid_max;
|
|
|
|
/*
|
|
* Get my name so that I can use it to report errors.
|
|
@@ -2073,6 +2073,9 @@ int main (int argc, char **argv)
|
|
audit_help_open ();
|
|
#endif
|
|
|
|
+ uid_min = (uid_t) getdef_ulong ("UID_MIN", 1000UL);
|
|
+ uid_max = (uid_t) getdef_ulong ("UID_MAX", 60000UL);
|
|
+
|
|
sys_ngroups = sysconf (_SC_NGROUPS_MAX);
|
|
user_groups = (char **) xmalloc ((1 + sys_ngroups) * sizeof (char *));
|
|
/*
|