]> granicus.if.org Git - shadow/commitdiff
Added FIXMEs.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 19 May 2009 22:12:27 +0000 (22:12 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 19 May 2009 22:12:27 +0000 (22:12 +0000)
src/usermod.c

index f178a152fac2524b68df5fe66c43c62472a49dba..c677e8bc212c977cacb62bdf57cbddc05040da29 100644 (file)
@@ -1425,6 +1425,10 @@ static void move_home (void)
                                        rmdir (user_newhome);
                                        fail_exit (E_HOMEDIR);
                                }
+                               // FIXME: the current uid & gid should
+                               // also be provided so that only the files
+                               // owned by the user/group have their
+                               // ownership changed.
                                if (copy_tree (user_home, user_newhome,
                                               uflg ? (long int)user_newid : -1,
                                               gflg ? (long int)user_newgid : -1) == 0) {
@@ -1793,7 +1797,7 @@ int main (int argc, char **argv)
        }
 #endif
 
-       if (uflg) {
+       if (uflg) { // FIXME: gflg also, except for faillog/lastlog
                update_lastlog ();
                update_faillog ();