[pups] Y2K problem in ftpd?
Martijn van Buul
pino at dohd.org
Mon Feb 5 23:27:46 AEST 2001
Martijn van Buul wrote:
> I'll see if I can figure out a quick patch :)
Done.
A diff for /usr/src/libexec/ftpd/ftpcmd.y:
461,463c461,464
< "19%02d%02d%02d%02d%02d%02d",
< t->tm_year, t->tm_mon+1, t->tm_mday,
< t->tm_hour, t->tm_min, t->tm_sec);
---
> "%04d%02d%02d%02d%02d%02d",
> t->tm_year+1900, t->tm_mon+1,
> t->tm_mday, t->tm_hour, t->tm_min,
> t->tm_sec);
Miraculously, this *reduces* the size of the binary by a whopping two
bytes ;)
--
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 BAA65865
for pups-liszt; Tue, 6 Feb 2001 01:04:27 +1100 (EST)
(envelope-from owner-pups at minnie.cs.adfa.edu.au)
More information about the TUHS
mailing list