Репозитории ALT
S: | 1.22.1-alt4 |
5.1: | 1.21.1-alt1 |
4.1: | 1.21.1-alt0.M41.1 |
4.0: | 1.21.1-alt0.M40.1 |
3.0: | 1.19.2-alt2 |
+backports: | 1.20.1-alt0.M30.1 |
Другие репозитории
Upstream: | 1.21.1 |
Группа :: Безопасность/Сети
Пакет: fiaif
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: fiaif-1.22.1-btime.patch
Скачать
Скачать
Recent OpenVZ kernels provides a 'realbtime' entry in /proc/stat
to track a HN boot time.
Fix regex to match only 'btime' entry.
--- prog/fiaif
+++ prog/fiaif
@@ -316,7 +316,7 @@ fi
# Remove old state file if older than boot time
if [[ -f ${SUBSYS_FILE} ]]; then
- BOOT_TIME=$(grep btime /proc/stat|cut -f 2 -d" ")
+ BOOT_TIME=$(grep '^btime ' /proc/stat|cut -f 2 -d" ")
SUBSYS_TIME=$(date +%s -r ${SUBSYS_FILE})
if (( SUBSYS_TIME < BOOT_TIME )); then
rm -f ${SUBSYS_FILE}