Time problem

Christophe Wolfhugel wolf at grasp1.univ-lyon1.fr
Sun Apr 21 19:01:47 AEST 1991


I've a strange problem with a ftpd that I've modified to run under AIX 2.2.1

20:54:02, a user connect my ftpd and it answers (code is below):
--> 230 Local (MET, GMT+1) time is: Sun Apr 21 02:54:02 1991

The syslog also registered 02:54

A few minutes later I connect to that place

20:56:46, that's me connected to the ftpd.
--> 230 Local (MET, GMT+1) time is: Sat Apr 20 20:56:46 1991

Of course the syslog registered 20:56.
Strange... This is going backwards.

Here's the piece of code generating the 230 message (the one generated for
the syslog is done by the system).

|   time(&t); strncpy(buf,ctime(&t),24); buf[24]=0;
|   printf("\r\n230 Local (MET, GMT+1) time is: %s\r\n",buf);

My question: is there somewhere, in the ftp process, system socket handling
something that would fool the system time and give me something totally
wrong?

-- 
	- Wolf		(wolf at grasp1.univ-lyon1.fr



More information about the Comp.unix.questions mailing list