[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filesystem anomalies...



On Tue, Feb 01, 2000 at 09:09:58PM -0000, Scott Ballantyne wrote:
> Even stranger, today, FTP'ing files from another system gives:

> -r--r--r--  1 root  daemon  58130 Dec 24 05:05 mvc-051f.jpg
> -r--r--r--  1 root  daemon  62085 Dec 20  1909 mvc-058f.jpg
> -r--r--r--  1 root  daemon  46675 Dec 20  1909 mvc-059f.jpg
> -r--r--r--  1 root  daemon  67810 Dec 20  1909 mvc-060f.jpg
> -r--r--r--  1 root  daemon  51968 Dec 20  1909 mvc-061f.jpg

> The last four, with the date set to 1909, are the ones that were
> ftp'ed today.

> Doing echo >foo in the same directory:

> -rw-r-----  1 root  daemon  1 Feb  1 16:09 foo

> So it seems to be something specific to the ftp client.

No, it's specific to the ftp *server*.
This one has a year 2000 bug, the stupidest you can find...

write dates as 19xx, instead of 1900+year...

So, when you ask it for modification times, it gives you
191000201  for 2000, february 1st.

of course this turns into 1910, -1 month, 20th day, as known as 1909, Dec 20.

A work-around to deal with those lame ftp servers that other `OSes' have 
was put into our tree a few days ago.

-- 
	Marc Espie		
|anime, sf, juggling, unicycle, acrobatics, comics...
|AmigaOS, OpenBSD, C++, perl, Icon, PostScript...
| `real programmers don't die, they just get out of beta'