correct the parameter checking when attempting to set the run mode
This commit is contained in:
parent
da95a4db20
commit
69e331f559
13
powerpc-utils-cpu_diag_mode.patch
Normal file
13
powerpc-utils-cpu_diag_mode.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: powerpc-utils-1.2.2/src/ppc64_cpu.c
|
||||||
|
===================================================================
|
||||||
|
--- powerpc-utils-1.2.2.orig/src/ppc64_cpu.c 2009-10-22 14:00:13.000000000 -0500
|
||||||
|
+++ powerpc-utils-1.2.2/src/ppc64_cpu.c 2010-05-17 14:29:45.577267014 -0500
|
||||||
|
@@ -383,7 +383,7 @@
|
||||||
|
} else {
|
||||||
|
signed char rmode = *run_mode;
|
||||||
|
|
||||||
|
- if (rmode < 0 || rmode > 3) {
|
||||||
|
+ if (rmode < '0' || rmode > '3') {
|
||||||
|
printf("Invalid run-mode=%c\n", rmode);
|
||||||
|
return -1;
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
Name: powerpc-utils
|
Name: powerpc-utils
|
||||||
Version: 1.2.2
|
Version: 1.2.2
|
||||||
Release: 2%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Utilities for PowerPC platforms
|
Summary: Utilities for PowerPC platforms
|
||||||
|
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -16,7 +16,10 @@ Requires: libservicelog
|
|||||||
ExclusiveArch: ppc ppc64
|
ExclusiveArch: ppc ppc64
|
||||||
|
|
||||||
# This hack is needed only for platforms with autoconf < 2.63
|
# This hack is needed only for platforms with autoconf < 2.63
|
||||||
Patch2: powerpc-utils-autoconf.patch
|
Patch1: powerpc-utils-autoconf.patch
|
||||||
|
|
||||||
|
# correct the parameter checking when attempting to set the run mode
|
||||||
|
Patch2: powerpc-utils-cpu_diag_mode.patch
|
||||||
|
|
||||||
# This is done before release of F12
|
# This is done before release of F12
|
||||||
Obsoletes: powerpc-utils-papr < 1.1.6-3
|
Obsoletes: powerpc-utils-papr < 1.1.6-3
|
||||||
@ -33,6 +36,8 @@ Utilities for PowerPC platforms.
|
|||||||
%patch1 -p1 -b .aconf
|
%patch1 -p1 -b .aconf
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%patch2 -p1 -b .cpu_diag_mode
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
%configure
|
%configure
|
||||||
@ -109,6 +114,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%preun
|
%preun
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 02 2010 Roman Rakus <rrakus@redhat.com> - 1.2.2-4
|
||||||
|
- correct the parameter checking when attempting to set the run mode
|
||||||
|
- also bump release
|
||||||
|
|
||||||
* Fri Mar 05 2010 Roman Rakus <rrakus@redhat.com> - 1.2.2-2
|
* Fri Mar 05 2010 Roman Rakus <rrakus@redhat.com> - 1.2.2-2
|
||||||
- Removed deprecated init script and perl script
|
- Removed deprecated init script and perl script
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user