[pups] Y2K problem in ftpd?

Martijn van Buul pino at dohd.org
Mon Feb 5 22:37:53 AEST 2001


A friendly user pointed me to this obvious error:

(part of a typescript, an FTP session to my PDP, running 2.11BSD)

ncftp /usr/home/martijnb> ls -la foobar.c
-rw-r--r--  1 martijnb users         106 Jan 15 15:25 foobar.c
ncftp /usr/home/martijnb> quote mdtm foobar.c

(mdtm should return the datestamp, in the form yyyymmddhhmm. ftpd
thinks that it is 19101, and chops off the last digit of the filedate..)

Things go wrong when you try to get an allready existing file:

ncftp /usr/home/martijnb > get foobar.c

The local file "foobar.c" already exists.
	Local:           133 bytes, dated Mon Feb  5 13:25:59 2001.
	Remote:          133 bytes, dated Thu Oct 13 04:44:15 1910.

	[O]verwrite?  [A]ppend to?  [S]kip?  [N]ew Name?  > 


I'll see if I can figure out a quick patch :)

    Martijn van Buul -  Pino at dohd.org - http://www.stack.nl/~martijnb/
	 Geek code: G--  - Visit OuterSpace: mud.stack.nl 3333
   Kees J. Bot: The sum of CPU power and user brain power is a constant.

Received: (from major at localhost)
	by minnie.cs.adfa.edu.au (8.9.3/8.9.3) id AAA65628
	for pups-liszt; Tue, 6 Feb 2001 00:14:23 +1100 (EST)
	(envelope-from owner-pups at minnie.cs.adfa.edu.au)

More information about the TUHS mailing list