From 537496c019e43ce2b3d99c0a6e7254a9492fc6f6 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Mon, 19 May 2008 20:31:48 +0000 Subject: [PATCH] Fix formatting. --- ChangeLog | 4 ++++ src/useradd.c | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index ab067b08..ecfa1510 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-05-19 Nicolas François + + * src/useradd.c: Fix formatting. + 2008-05-19 Nicolas François * NEWS, man/useradd.8.xml: Document the -r, --system option. diff --git a/src/useradd.c b/src/useradd.c index eae5389b..b606c90e 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -713,11 +713,11 @@ static void new_spent (struct spwd *spent) spent->sp_pwdp = (char *) user_pass; spent->sp_lstchg = time ((time_t *) 0) / SCALE; if (!rflg) { - spent->sp_min = scale_age (getdef_num ("PASS_MIN_DAYS", -1)); - spent->sp_max = scale_age (getdef_num ("PASS_MAX_DAYS", -1)); - spent->sp_warn = scale_age (getdef_num ("PASS_WARN_AGE", -1)); - spent->sp_inact = scale_age (def_inactive); - spent->sp_expire = scale_age (user_expire); + spent->sp_min = scale_age (getdef_num ("PASS_MIN_DAYS", -1)); + spent->sp_max = scale_age (getdef_num ("PASS_MAX_DAYS", -1)); + spent->sp_warn = scale_age (getdef_num ("PASS_WARN_AGE", -1)); + spent->sp_inact = scale_age (def_inactive); + spent->sp_expire = scale_age (user_expire); } else { spent->sp_min = scale_age (-1); spent->sp_max = scale_age (-1); @@ -1074,7 +1074,7 @@ static void process_flags (int argc, char **argv) } } - if (!gflg && !Nflg && ! Uflg) { + if (!gflg && !Nflg && !Uflg) { /* Get the settings from login.defs */ Uflg = getdef_bool ("USERGROUPS_ENAB"); }