Ticket #4260: ftpfs: the month of file is always January.

(parse_ls_line): fix test of vfs_parse_month() value.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
m_ok 2021-07-13 21:28:57 +03:00 committed by Andrew Borodin
parent 0c04e23821
commit 36e48b04bd

View File

@ -356,7 +356,7 @@ parse_ls_line (char *line, struct stat *s, char **filename, char **linkname)
memset (&date, 0, sizeof (date));
if (vfs_parse_month (t, &date))
if (!vfs_parse_month (t, &date))
date.tm_mon = 0;
day_of_month = NEXT_TOKEN_R;