* vfs.c (vfs_parse_filedate): Don't reset got_year to 0 while
checking for ctime() format. From Peter Daum.
Этот коммит содержится в:
родитель
3a127b877c
Коммит
a18b4a09eb
@ -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>
|
2001-02-11 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* extfs/mailfs (parse_date): Workaround for Y2K bugs. Support
|
* extfs/mailfs (parse_date): Workaround for Y2K bugs. Support
|
||||||
|
@ -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 */
|
/* This is a special case for ctime() or Mon DD YYYY hh:mm */
|
||||||
if(is_num (idx) && (columns[idx+1][0]) &&
|
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 */
|
idx++; /* time & year or reverse */
|
||||||
} /* only time or date */
|
} /* only time or date */
|
||||||
}
|
}
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user