* libmisc/sulog.c: Likewise for the su log.

This commit is contained in:
nekral-guest 2009-03-21 19:32:14 +00:00
parent a65c2c9b18
commit dab1523df5
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
and mail spool.
* src/usermod.c: Likewise for the faillog and lastlog file.
* src/vipw.c: Likewise for the backup file.
* libmisc/sulog.c: Likewise for the su log.
2009-03-15 Nicolas François <nicolas.francois@centraliens.net>

View File

@ -97,6 +97,7 @@ void sulog (const char *tty, bool success, const char *oldname, const char *name
success ? '+' : '-', tty, oldname, name);
(void) fflush (fp);
fsync (fileno (fp));
fclose (fp);
/* TODO: log if failure */
}