* src/usermod.c: Re-indent.

This commit is contained in:
nekral-guest 2010-08-20 18:24:33 +00:00
parent 6b74294844
commit fad23b25a1
2 changed files with 23 additions and 14 deletions

View File

@ -1,3 +1,7 @@
2010-08-20 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Re-indent.
2010-08-20 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.c: Avoid multi-statements lines.

View File

@ -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);
}
}
}