diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 114ab4618..fc1111bee 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,9 @@ +2001-02-14 Pavel Roskin + + * 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 * extfs/mailfs (parse_date): Workaround for Y2K bugs. Support diff --git a/vfs/vfs.c b/vfs/vfs.c index 7862714f1..1a85e0c8e 100644 --- a/vfs/vfs.c +++ b/vfs/vfs.c @@ -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 */ }