Add the year to the 'wtmp begins...' line.
PR: 6421 Submitted by: phk
This commit is contained in:
parent
c52c933ddd
commit
7c50fe7bb0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35658
@ -298,8 +298,8 @@ wtmp()
|
||||
}
|
||||
}
|
||||
tm = localtime(&buf[0].ut_time);
|
||||
(void) strftime(ct, sizeof(ct), "%c", tm);
|
||||
printf("\nwtmp begins %10.10s %5.5s \n", ct, ct + 11);
|
||||
(void) strftime(ct, sizeof(ct), "\nwtmp begins %c\n", tm);
|
||||
printf(ct);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user