[Pkg-shadow-commits] r3218 - in upstream/trunk: . src

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Fri Aug 20 18:24:36 UTC 2010


Author: nekral-guest
Date: 2010-08-20 18:24:33 +0000 (Fri, 20 Aug 2010)
New Revision: 3218

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/usermod.c
Log:
	* src/usermod.c: Re-indent.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2010-08-20 18:09:14 UTC (rev 3217)
+++ upstream/trunk/ChangeLog	2010-08-20 18:24:33 UTC (rev 3218)
@@ -1,5 +1,9 @@
 2010-08-20  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* src/usermod.c: Re-indent.
+
+2010-08-20  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* lib/commonio.c: Avoid multi-statements lines.
 
 2010-08-20  Nicolas François  <nicolas.francois at centraliens.net>

Modified: upstream/trunk/src/usermod.c
===================================================================
--- upstream/trunk/src/usermod.c	2010-08-20 18:09:14 UTC (rev 3217)
+++ upstream/trunk/src/usermod.c	2010-08-20 18:24:33 UTC (rev 3218)
@@ -1821,21 +1821,26 @@
 
 	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);
+			}
 		}
-		}
 	}
 
 	return E_SUCCESS;




More information about the Pkg-shadow-commits mailing list