summaryrefslogtreecommitdiff
path: root/logintest.c
diff options
context:
space:
mode:
authorandre <andre>2000-06-13 00:29:34 +0000
committerandre <andre>2000-06-13 00:29:34 +0000
commitf36b4be746ea11d7da366d5d849476578407f256 (patch)
tree5c3d564519d8a23a769e9caab44f4e74b0c99c41 /logintest.c
parent09314668f61e9c5dfed0609beb3191eac38eaac4 (diff)
downloadopenssh-f36b4be746ea11d7da366d5d849476578407f256.tar.gz
Backed out previous changes - 'tolerance' setting may just hide a bug in
the lastlog-from-utmp code for HPUX
Diffstat (limited to 'logintest.c')
-rw-r--r--logintest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/logintest.c b/logintest.c
index 4fc27b25..d7c62ab8 100644
--- a/logintest.c
+++ b/logintest.c
@@ -48,7 +48,7 @@
#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;
@@ -175,12 +175,12 @@ int testAPI()
printf("The lastlog times before and after logging in are the "
"same.\nThis indicates that lastlog is ** NOT WORKING "
"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"
"** This indicates that lastlog is either recording the "
"wrong time,\n** or retrieving the wrong entry.\n");
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