Репозитории ALT
S: | 4.8.30-alt3 |
5.1: | 4.8.11-alt0.M51.1 |
4.1: | 4.6.2-alt7.pre1 |
4.0: | 4.6.1r-alt9 |
3.0: | 4.6.1r-alt3 |
Группа :: Работа с файлами
Пакет: mc
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: mc-4.6.0-vfs-date_parse-alt.patch
Скачать
Скачать
--- vfs/vfs.c.orig 2004-06-29 16:51:40 +0400
+++ vfs/vfs.c 2004-06-29 17:08:18 +0400
@@ -1605,19 +1605,16 @@
/* Here we expect to find time and/or year */
if (is_num (idx)) {
- if (is_time (columns[idx], &tim)
- || (got_year = is_year (columns[idx], &tim))) {
+ if (is_time(columns[idx], &tim)) {
idx++;
+ } else if (is_year(columns[idx], &tim)) {
+ idx++;
+ got_year = 1;
/* This is a special case for ctime() or Mon DD YYYY hh:mm */
if (is_num (idx) && (columns[idx + 1][0])) {
- if (got_year) {
- if (is_time (columns[idx], &tim))
- idx++; /* time also */
- } else {
- if ((got_year = is_year (columns[idx], &tim)))
- idx++; /* year also */
- }
+ if (is_time (columns[idx], &tim))
+ idx++; /* time also */
}
} /* only time or date */
} else