Group :: System/Kernel and hardware
RPM: hardinfo
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 02-fix-distro-crash.patch
Download
Download
--- 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;