Fix regression in useradd not loading defaults properly.
The get_defaults() has to be called before processing the flags. Signed-off-by: Tomáš Mráz <tmraz@fedoraproject.org>
This commit is contained in:
parent
6fbc11ce21
commit
507f96cdeb
@ -2027,6 +2027,8 @@ int main (int argc, char **argv)
|
|||||||
is_shadow_grp = sgr_file_present ();
|
is_shadow_grp = sgr_file_present ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
get_defaults ();
|
||||||
|
|
||||||
process_flags (argc, argv);
|
process_flags (argc, argv);
|
||||||
|
|
||||||
#ifdef ENABLE_SUBIDS
|
#ifdef ENABLE_SUBIDS
|
||||||
@ -2036,8 +2038,6 @@ int main (int argc, char **argv)
|
|||||||
(!user_id || (user_id <= uid_max && user_id >= uid_min));
|
(!user_id || (user_id <= uid_max && user_id >= uid_min));
|
||||||
#endif /* ENABLE_SUBIDS */
|
#endif /* ENABLE_SUBIDS */
|
||||||
|
|
||||||
get_defaults ();
|
|
||||||
|
|
||||||
#ifdef ACCT_TOOLS_SETUID
|
#ifdef ACCT_TOOLS_SETUID
|
||||||
#ifdef USE_PAM
|
#ifdef USE_PAM
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user