On Sat, Sep 21, 2002 at 07:28:11PM -0400, Glenn Maynard wrote:
> lftp 0:/> hostls -l
> -rw-r--r--   1 1000     users    3147825152 Sep 21 23:17 blah

Er, just upgraded; apparently the new package is broken:

lftp 0:/> hostls -l blah
-rw-r--r--   1 1000     users    3147825152 Sep 22 21:53 blah
lftp 0:/> cls -l blah
-rw-r--r--    1 1000     users    18446744072562409472 Sep 22  2001 blah

CVS:

lftp 0:/> cls -l blah
-rw-r--r--    1 1000     users    3147825152 Sep 22  2001 blah

The cls formatter takes an unsigned int of the largest type available
(uintmax_t).  off_t is always signed, so I'd guess the Debian binary
is ending up with a 32-bit off_t.

Make sure _FILE_OFFSET_BITS=64 is being defined correctly; check
config.h and config.log.

I notice the timestamp is wrong, too (on both).

06:20pm [EMAIL PROTECTED]/1 [~ftp] touch -t 09221310 foo
(about five hours ago, to get it out of the "bump the year when the date
is in the future" window)

lftp 0:/> cls -l foo
-rw-r--r--    1 1000     users           0 Sep 22 17:10 foo
lftp 0:/> hostls -l foo
-rw-r--r--   1 1000     users           0 Sep 22 17:10 foo
lftp 0:/> !ls -l --time-style=locale ~ftp/foo (local time)
-rw-r--r--    1 glenn    users           0 Sep 22 13:10 /home/ftp/foo

Note that cls and ls are the same--they're both GMT.  cls should be printing
local time.  It looks like the timezone adjustment is going astray somewhere.

(note: I have ftp:timezone="GMT", which matches the output of the server, so
it's not a configuration issue.)

-- 
Glenn Maynard

Reply via email to