Репозитории ALT
S: | 0.6-alt0_0_git_b3c1f91 |
5.1: | 0.4.2.3-alt3 |
4.1: | 0.4.2.3-alt1 |
4.0: | 0.4.1-alt0.1 |
Группа :: Система/Ядро и оборудование
Пакет: hardinfo
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 02-fix-distro-crash.patch
Скачать
Скачать
--- a/arch/linux/common/os.h 2009-04-06 17:43:15.000000000 +0400
+++ b/arch/linux/common/os.h.new 2013-09-16 23:12:33.450892293 +0400
@@ -200,8 +200,12 @@
char buf[128];
distro_ver = fopen(distro_db[i].file, "r");
- (void)fgets(buf, 128, distro_ver);
- fclose(distro_ver);
+ if (distro_ver) {
+ (void)fgets(buf, 128, distro_ver);
+ fclose(distro_ver);
+ } else {
+ continue;
+ }
buf[strlen(buf) - 1] = 0;