mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-29 08:44:52 +02:00
Backed out previous changes - 'tolerance' setting may just hide a bug in
the lastlog-from-utmp code for HPUX
This commit is contained in:
parent
4225438a34
commit
55661d99b8
@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
#include "loginrec.h"
|
#include "loginrec.h"
|
||||||
|
|
||||||
RCSID("$Id: logintest.c,v 1.3 2000/06/12 23:40:52 andre Exp $");
|
RCSID("$Id: logintest.c,v 1.4 2000/06/13 00:29:34 andre Exp $");
|
||||||
|
|
||||||
|
|
||||||
int nologtest = 0;
|
int nologtest = 0;
|
||||||
@ -175,12 +175,12 @@ int testAPI()
|
|||||||
printf("The lastlog times before and after logging in are the "
|
printf("The lastlog times before and after logging in are the "
|
||||||
"same.\nThis indicates that lastlog is ** NOT WORKING "
|
"same.\nThis indicates that lastlog is ** NOT WORKING "
|
||||||
"CORRECTLY **\n");
|
"CORRECTLY **\n");
|
||||||
else if ( abs(t2-t0) >2 ) /* allow a small tolerance for slow systems */
|
else if (t0 != t2)
|
||||||
printf("** The login time and the lastlog time differ.\n"
|
printf("** The login time and the lastlog time differ.\n"
|
||||||
"** This indicates that lastlog is either recording the "
|
"** This indicates that lastlog is either recording the "
|
||||||
"wrong time,\n** or retrieving the wrong entry.\n");
|
"wrong time,\n** or retrieving the wrong entry.\n");
|
||||||
else
|
else
|
||||||
printf("lastlog seems to agree with the login time. This is a good thing.\n");
|
printf("lastlog agrees with the login time. This is a good thing.\n");
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user