Only reset the entries of existing users with faillog -r (not all numeric
IDs starting from 0). Thanks to Peter Vrabec.
This commit is contained in:
parent
52cfc3372b
commit
6ea65c8992
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2008-03-05 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/pwunconv.c: Fix typo. One "can't open" message is a "can't
|
* src/pwunconv.c: Fix typo. One "can't open" message is a "can't
|
||||||
|
3
NEWS
3
NEWS
@ -21,6 +21,9 @@ shadow-4.1.0 -> shadow-4.1.1 UNRELEASED
|
|||||||
- chage
|
- chage
|
||||||
* Fix bug which forbid to set the aging information of an account with a
|
* Fix bug which forbid to set the aging information of an account with a
|
||||||
passwd entry, but no shadow entry.
|
passwd entry, but no shadow entry.
|
||||||
|
- faillog
|
||||||
|
* faillog -r now only reset the entries of existing users. This makes
|
||||||
|
faillog faster.
|
||||||
- gpasswd
|
- gpasswd
|
||||||
* Fix failures when the gshadow file is not present.
|
* Fix failures when the gshadow file is not present.
|
||||||
* When a password is moved to the gshadow file, use "x" instead of "x"
|
* When a password is moved to the gshadow file, use "x" instead of "x"
|
||||||
|
@ -163,8 +163,14 @@ static void reset (void)
|
|||||||
|
|
||||||
if (uflg)
|
if (uflg)
|
||||||
reset_one (user);
|
reset_one (user);
|
||||||
else
|
else {
|
||||||
for (uid = 0; reset_one (uid); uid++);
|
struct passwd *pwent;
|
||||||
|
|
||||||
|
setpwent ();
|
||||||
|
while ( pwent = getpwent () ) {
|
||||||
|
reset_one (pwent->pw_uid);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print (void)
|
static void print (void)
|
||||||
|
Loading…
Reference in New Issue
Block a user