1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

Give correct times with old wtmp files.

PR:		4732
Submitted by:	Andrew Timonin <tim@pool1.convey.ru>
This commit is contained in:
Steve Price 1998-05-25 05:21:29 +00:00
parent ad863cac06
commit 2a30154f05
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36353

View File

@ -15,7 +15,7 @@
#ifndef lint
static const char rcsid[] =
"$Id$";
"$Id: ac.c,v 1.8 1997/09/01 06:11:40 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@ -517,7 +517,8 @@ ac(fp)
}
}
(void)fclose(fp);
usr.ut_time = time((time_t *)0);
if (!(Flags & AC_W))
usr.ut_time = time((time_t *)0);
(void)strcpy(usr.ut_line, "~");
if (Flags & AC_D) {