IDs starting from 0). Thanks to Peter Vrabec.
+2008-03-05 Nicolas François <nicolas.francois@centraliens.net>
+
+ * NEWS, src/faillog.c: Only reset the entries of existing users
+ with faillog -r (not all numeric IDs starting from 0). Thanks to
+ Peter Vrabec.
+
2008-03-05 Nicolas François <nicolas.francois@centraliens.net>
* src/pwunconv.c: Fix typo. One "can't open" message is a "can't
- chage
* Fix bug which forbid to set the aging information of an account with a
passwd entry, but no shadow entry.
+- faillog
+ * faillog -r now only reset the entries of existing users. This makes
+ faillog faster.
- gpasswd
* Fix failures when the gshadow file is not present.
* When a password is moved to the gshadow file, use "x" instead of "x"
if (uflg)
reset_one (user);
- else
- for (uid = 0; reset_one (uid); uid++);
+ else {
+ struct passwd *pwent;
+
+ setpwent ();
+ while ( pwent = getpwent () ) {
+ reset_one (pwent->pw_uid);
+ }
+ }
}
static void print (void)