* vfs.c (vfs_parse_filedate): Don't reset got_year to 0 while

checking for ctime() format.
From Peter Daum.
This commit is contained in:
Pavel Roskin 2001-02-15 01:37:43 +00:00
parent 3a127b877c
commit a18b4a09eb
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-02-14 Pavel Roskin <proski@gnu.org>
* vfs.c (vfs_parse_filedate): Don't reset got_year to 0 while
checking for ctime() format.
From Peter Daum.
2001-02-11 Pavel Roskin <proski@gnu.org>
* extfs/mailfs (parse_date): Workaround for Y2K bugs. Support

View File

@ -1583,7 +1583,7 @@ int vfs_parse_filedate(int idx, time_t *t)
/* This is a special case for ctime() or Mon DD YYYY hh:mm */
if(is_num (idx) && (columns[idx+1][0]) &&
((got_year = is_year(columns[idx], &tim)) || is_time(columns[idx], &tim)))
((got_year |= is_year(columns[idx], &tim)) || is_time(columns[idx], &tim)))
idx++; /* time & year or reverse */
} /* only time or date */
}