diff --git a/ChangeLog b/ChangeLog index bdcf9f12..b10de3e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-08-20 Nicolas François + + * src/usermod.c: Re-indent. + 2010-08-20 Nicolas François * lib/commonio.c: Avoid multi-statements lines. diff --git a/src/usermod.c b/src/usermod.c index 2d5036fc..7f792d7b 100644 --- a/src/usermod.c +++ b/src/usermod.c @@ -1821,20 +1821,25 @@ int main (int argc, char **argv) if (!mflg && (uflg || gflg)) { if (access (dflg ? user_newhome : user_home, F_OK) == 0) { - /* - * Change the UID on all of the files owned by `user_id' to - * `user_newid' in the user's home directory. - * - * move_home() already takes care of changing the ownership. - */ - if (chown_tree (dflg ? user_newhome : user_home, - user_id, uflg ? user_newid : (uid_t)-1, - user_gid, gflg ? user_newgid : (gid_t)-1) != 0) { - fprintf (stderr, - _("%s: Failed to change ownership of the home directory"), - Prog); - fail_exit (E_HOMEDIR); - } + /* + * Change the UID on all of the files owned by + * `user_id' to `user_newid' in the user's home + * directory. + * + * move_home() already takes care of changing the + * ownership. + * + */ + if (chown_tree (dflg ? user_newhome : user_home, + user_id, + uflg ? user_newid : (uid_t)-1, + user_gid, + gflg ? user_newgid : (gid_t)-1) != 0) { + fprintf (stderr, + _("%s: Failed to change ownership of the home directory"), + Prog); + fail_exit (E_HOMEDIR); + } } }