[Pkg-shadow-commits] r3140 - in upstream/trunk: . src
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Thu Mar 18 00:07:03 UTC 2010
Author: nekral-guest
Date: 2010-03-18 00:07:00 +0000 (Thu, 18 Mar 2010)
New Revision: 3140
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/faillog.c
Log:
* src/faillog.c: Re-indent.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2010-03-18 00:06:33 UTC (rev 3139)
+++ upstream/trunk/ChangeLog 2010-03-18 00:07:00 UTC (rev 3140)
@@ -1,5 +1,9 @@
2010-03-17 Nicolas François <nicolas.francois at centraliens.net>
+ * src/faillog.c: Re-indent.
+
+2010-03-17 Nicolas François <nicolas.francois at centraliens.net>
+
* lib/tcbfuncs.h: Added type shadowtcb_status.
* lib/tcbfuncs.h, lib/tcbfuncs.c: Return a shadowtcb_status
instead of an int.
Modified: upstream/trunk/src/faillog.c
===================================================================
--- upstream/trunk/src/faillog.c 2010-03-18 00:06:33 UTC (rev 3139)
+++ upstream/trunk/src/faillog.c 2010-03-18 00:07:00 UTC (rev 3140)
@@ -288,19 +288,19 @@
if (aflg) {
/* Entries for non existing users are also reset.
*/
- uid_t uid = 0;
+ uid_t uid = 0;
- /* Make sure we stay in the umin-umax range if specified */
- if (has_umin) {
- uid = (uid_t)umin;
- }
+ /* Make sure we stay in the umin-umax range if specified */
+ if (has_umin) {
+ uid = (uid_t)umin;
+ }
- while (uid <= uidmax) {
- if (reset_one (uid)) {
- errors = true;
+ while (uid <= uidmax) {
+ if (reset_one (uid)) {
+ errors = true;
+ }
+ uid++;
}
- uid++;
- }
} else {
/* Only reset records for existing users.
*/
@@ -392,32 +392,32 @@
* entries will be created.
*/
if (aflg) {
- /* Entries for non existing user are also taken into
- * account (in order to define policy for future users).
- */
- uid_t uid = 0;
- /* The default umax value is based on the size of the
- * faillog database.
- */
- uid_t uidmax = statbuf.st_size / sizeof (struct faillog);
- if (uidmax > 1) {
- uidmax--;
- }
+ /* Entries for non existing user are also taken into
+ * account (in order to define policy for future users).
+ */
+ uid_t uid = 0;
+ /* The default umax value is based on the size of the
+ * faillog database.
+ */
+ uid_t uidmax = statbuf.st_size / sizeof (struct faillog);
+ if (uidmax > 1) {
+ uidmax--;
+ }
- /* Make sure we stay in the umin-umax range if specified */
- if (has_umin) {
- uid = (uid_t)umin;
- }
- if (has_umax) {
- uidmax = (uid_t)umax;
- }
+ /* Make sure we stay in the umin-umax range if specified */
+ if (has_umin) {
+ uid = (uid_t)umin;
+ }
+ if (has_umax) {
+ uidmax = (uid_t)umax;
+ }
- while (uid <= uidmax) {
- if (setmax_one (uid, max)) {
- errors = true;
+ while (uid <= uidmax) {
+ if (setmax_one (uid, max)) {
+ errors = true;
+ }
+ uid++;
}
- uid++;
- }
} else {
/* Only change records for existing users.
*/
@@ -509,32 +509,32 @@
* entries will be created.
*/
if (aflg) {
- /* Entries for non existing user are also taken into
- * account (in order to define policy for future users).
- */
- uid_t uid = 0;
- /* The default umax value is based on the size of the
- * faillog database.
- */
- uid_t uidmax = statbuf.st_size / sizeof (struct faillog);
- if (uidmax > 1) {
- uidmax--;
- }
+ /* Entries for non existing user are also taken into
+ * account (in order to define policy for future users).
+ */
+ uid_t uid = 0;
+ /* The default umax value is based on the size of the
+ * faillog database.
+ */
+ uid_t uidmax = statbuf.st_size / sizeof (struct faillog);
+ if (uidmax > 1) {
+ uidmax--;
+ }
- /* Make sure we stay in the umin-umax range if specified */
- if (has_umin) {
- uid = (uid_t)umin;
- }
- if (has_umax) {
- uidmax = (uid_t)umax;
- }
+ /* Make sure we stay in the umin-umax range if specified */
+ if (has_umin) {
+ uid = (uid_t)umin;
+ }
+ if (has_umax) {
+ uidmax = (uid_t)umax;
+ }
- while (uid <= uidmax) {
- if (set_locktime_one (uid, locktime)) {
- errors = true;
+ while (uid <= uidmax) {
+ if (set_locktime_one (uid, locktime)) {
+ errors = true;
+ }
+ uid++;
}
- uid++;
- }
} else {
/* Only change records for existing users.
*/
More information about the Pkg-shadow-commits
mailing list