]> granicus.if.org Git - shadow/commitdiff
* src/usermod.c: Re-indent.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 20 Aug 2010 18:24:33 +0000 (18:24 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 20 Aug 2010 18:24:33 +0000 (18:24 +0000)
ChangeLog
src/usermod.c

index bdcf9f12d6f7078cda164ab2c61d4cf20900384c..b10de3e9e5f1ebbb0ab2565c75a4555d60180cc0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 2d5036fc26d3caad751c43010ce7df4f54d9058a..7f792d7b7fc40ac169ea97f092f74bb4d51e9110 100644 (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);
+                       }
                }
        }