Blame SOURCES/lm_sensors-3.3.4-sensors-detect-null-input.patch
|
|
56fdad |
diff -Naur lm_sensors-3.3.4.orig/prog/detect/sensors-detect lm_sensors-3.3.4/prog/detect/sensors-detect
|
|
|
56fdad |
--- lm_sensors-3.3.4.orig/prog/detect/sensors-detect 2013-05-20 21:25:22.000000000 +0200
|
|
|
56fdad |
+++ lm_sensors-3.3.4/prog/detect/sensors-detect 2013-07-25 18:24:41.636807410 +0200
|
|
|
56fdad |
@@ -3707,7 +3707,7 @@
|
|
|
56fdad |
"Do you want to scan it? (\%s/selectively): ",
|
|
|
56fdad |
$default ? "YES/no" : "yes/NO";
|
|
|
56fdad |
|
|
|
56fdad |
- $input = <STDIN>;
|
|
|
56fdad |
+ $input = <STDIN> || '';
|
|
|
56fdad |
if ($input =~ /^\s*n/i
|
|
|
56fdad |
|| (!$default && $input !~ /^\s*[ys]/i)) {
|
|
|
56fdad |
print "\n";
|
|
|
56fdad |
@@ -3718,7 +3718,7 @@
|
|
|
56fdad |
print "Please enter one or more addresses not to scan. Separate them with commas.\n",
|
|
|
56fdad |
"You can specify a range by using dashes. Example: 0x58-0x5f,0x69.\n",
|
|
|
56fdad |
"Addresses: ";
|
|
|
56fdad |
- $input = <STDIN>;
|
|
|
56fdad |
+ $input = <STDIN> || '';
|
|
|
56fdad |
chomp($input);
|
|
|
56fdad |
@not_to_scan = parse_not_to_scan(0x03, 0x77, $input);
|
|
|
56fdad |
} elsif (($class & 0xff00) == 0x0300) {
|
|
|
56fdad |
@@ -6859,7 +6859,7 @@
|
|
|
56fdad |
"safe though. Yes, you do have ISA I/O ports even if you do not have any\n".
|
|
|
56fdad |
"ISA slots! Do you want to scan the ISA I/O ports? (\%s): ",
|
|
|
56fdad |
$superio_features ? "yes/NO" : "YES/no";
|
|
|
56fdad |
- $input = <STDIN>;
|
|
|
56fdad |
+ $input = <STDIN> || '';
|
|
|
56fdad |
unless ($input =~ /^\s*n/i
|
|
|
56fdad |
|| ($superio_features && $input !~ /^\s*y/i)) {
|
|
|
56fdad |
if (initialize_ioports()) {
|