Ticket #4260 (new defect) — at Initial Version

Opened 3 years ago

Last modified 3 years ago

FTP: the month of file creation is always January

Reported by: m_ok Owned by:
Priority: minor Milestone: 4.8.27
Component: mc-vfs Version: 4.8.26
Keywords: ftpfs, date, ftp Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset:

Description

When browsing FTP servers, the files' dates always have January as a month. I found the location of this problem. In the file src/mc/src/vfs/ftpfs/ftpfs_parse_ls.c:

if (vfs_parse_month (t, &date))

date.tm_mon = 0;

should be changed to

if (!vfs_parse_month (t, &date))

date.tm_mon = 0;

The version is 4.8.26-221-g0c04e2382.

Note: See TracTickets for help on using tickets.