* src/usermod.c: Fix typo in comment.

This commit is contained in:
nekral-guest 2011-07-14 13:28:59 +00:00
parent 95257d63a1
commit aec025dbf6
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-07-14 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Fix typo in comment.
2011-07-08 Nicolas François <nicolas.francois@centraliens.net> 2011-07-08 Nicolas François <nicolas.francois@centraliens.net>
* src/groupadd.c: Fix typo in comment. * src/groupadd.c: Fix typo in comment.

View File

@ -1591,7 +1591,7 @@ static void update_faillog (void)
/* Check if the new UID already has an entry */ /* Check if the new UID already has an entry */
if ( (lseek (fd, off_newuid, SEEK_SET) == off_newuid) if ( (lseek (fd, off_newuid, SEEK_SET) == off_newuid)
&& (read (fd, &fl, sizeof fl) == (ssize_t) sizeof fl)) { && (read (fd, &fl, sizeof fl) == (ssize_t) sizeof fl)) {
/* Reset the new uid's lastlog entry */ /* Reset the new uid's faillog entry */
memzero (&fl, sizeof (fl)); memzero (&fl, sizeof (fl));
if ( (lseek (fd, off_newuid, SEEK_SET) != off_newuid) if ( (lseek (fd, off_newuid, SEEK_SET) != off_newuid)
|| (write (fd, &fl, sizeof fl) != (ssize_t) sizeof fl) || (write (fd, &fl, sizeof fl) != (ssize_t) sizeof fl)