printf("The lastlog times before and after logging in are the "
"same.\nThis indicates that lastlog is ** NOT WORKING "
"CORRECTLY **\n");
- else if (t0 != t2)
+ else if ( abs(t2-t0) >2 ) /* allow a small tolerance for slow systems */
printf("** The login time and the lastlog time differ.\n"
"** This indicates that lastlog is either recording the "
"wrong time,\n** or retrieving the wrong entry.\n");
else
- printf("lastlog agrees with the login time. This is a good thing.\n");
+ printf("lastlog seems to agree with the login time. This is a good thing.\n");
#endif