This commit is contained in:
parent
7e3c2880ca
commit
f848b3a1c3
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 21 11:15:28 CET 2008 - olh@suse.de
|
||||
|
||||
- use correct open mode for O_CREAT
|
||||
fix out-of-bounds access in parse_post_scn()
|
||||
fix errno assingment in parse_fru_*_scn()
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 13 14:50:25 CET 2007 - sassmann@suse.de
|
||||
|
||||
|
24
librtas.errno.patch
Normal file
24
librtas.errno.patch
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
librtasevent_src/rtas_srcfru.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/librtasevent_src/rtas_srcfru.c
|
||||
+++ b/librtasevent_src/rtas_srcfru.c
|
||||
@@ -78,7 +78,7 @@ parse_fru_pe_scn(struct rtas_event *re)
|
||||
|
||||
fru_pe = malloc(sizeof(*fru_pe));
|
||||
if (fru_pe == NULL) {
|
||||
- errno - ENOMEM;
|
||||
+ errno = ENOMEM;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ parse_fru_mr_scn(struct rtas_event *re)
|
||||
|
||||
fru_mr = malloc(sizeof(*fru_mr));
|
||||
if (fru_mr == NULL) {
|
||||
- errno - ENOMEM;
|
||||
+ errno = ENOMEM;
|
||||
return NULL;
|
||||
}
|
||||
|
15
librtas.firmware_rev.patch
Normal file
15
librtas.firmware_rev.patch
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
librtasevent_src/rtas_post.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/librtasevent_src/rtas_post.c
|
||||
+++ b/librtasevent_src/rtas_post.c
|
||||
@@ -48,7 +48,7 @@ parse_post_scn(struct rtas_event *re)
|
||||
|
||||
/* and lastly, the location code */
|
||||
rtas_copy(post->loc_code, re, 8);
|
||||
- post->firmware_rev[8] = '\0';
|
||||
+ post->loc_code[8] = '\0';
|
||||
|
||||
add_re_scn(re, post, RTAS_CPU_SCN);
|
||||
|
27
librtas.open_create.patch
Normal file
27
librtas.open_create.patch
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
librtas_src/common.c | 2 +-
|
||||
librtas_src/syscall_rmo.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/librtas_src/common.c
|
||||
+++ b/librtas_src/common.c
|
||||
@@ -65,7 +65,7 @@ int open_proc_rtas_file(const char *name
|
||||
npaths = sizeof(proc_rtas_paths) / sizeof(char *);
|
||||
for (i = 0; i < npaths; i++) {
|
||||
sprintf(full_name, "%s/%s", proc_rtas_paths[i], name);
|
||||
- fd = open(full_name, mode);
|
||||
+ fd = open(full_name, mode, 644);
|
||||
if (fd >= 0)
|
||||
break;
|
||||
}
|
||||
--- a/librtas_src/syscall_rmo.c
|
||||
+++ b/librtas_src/syscall_rmo.c
|
||||
@@ -117,7 +117,7 @@ static int acquire_file_lock(off_t start
|
||||
|
||||
/* Lazily open lock file */
|
||||
if (wa_config.lockfile_fd < 0) {
|
||||
- wa_config.lockfile_fd = open(lockfile_path, O_CREAT | O_RDWR);
|
||||
+ wa_config.lockfile_fd = open(lockfile_path, O_CREAT | O_RDWR, 644);
|
||||
if (wa_config.lockfile_fd < 0) {
|
||||
dbg1("could not open lockfile %s\n", lockfile_path);
|
||||
return RTAS_IO_ASSERT;
|
37
librtas.spec
37
librtas.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package librtas (Version 1.3.2)
|
||||
#
|
||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
@ -13,7 +13,7 @@
|
||||
Name: librtas
|
||||
BuildRequires: doxygen
|
||||
Version: 1.3.2
|
||||
Release: 200710312347
|
||||
Release: 200710312355
|
||||
Group: System/Libraries
|
||||
License: IBM Public License
|
||||
Summary: Libraries to provide access to RTAS calls and RTAS events
|
||||
@ -23,6 +23,9 @@ Url: http://librtas.ozlabs.org/
|
||||
Source0: http://librtas.ozlabs.org/downloads/librtas-%{version}.tar.bz2
|
||||
Patch0: librtas.open_prop_file-off_by_one.patch
|
||||
Patch1: librtas.libdir-fix-for-64bit.patch
|
||||
Patch2: librtas.open_create.patch
|
||||
Patch3: librtas.errno.patch
|
||||
Patch4: librtas.firmware_rev.patch
|
||||
|
||||
%description
|
||||
The librtas shared library provides userspace with an interface through
|
||||
@ -46,6 +49,9 @@ Authors:
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
|
||||
%build
|
||||
make CFLAGS="$RPM_OPT_FLAGS -fPIC -g" LIBDIR="%{_libdir}" %{?jobs:-j%jobs}
|
||||
@ -68,36 +74,41 @@ make install DESTDIR=$RPM_BUILD_ROOT LIBDIR="%{_libdir}"
|
||||
%doc COPYRIGHT README doc
|
||||
/usr/include/*
|
||||
%attr (555,root,root)%{_libdir}/lib*
|
||||
|
||||
%changelog
|
||||
* Tue Nov 13 2007 - sassmann@suse.de
|
||||
* Mon Jan 21 2008 olh@suse.de
|
||||
- use correct open mode for O_CREAT
|
||||
fix out-of-bounds access in parse_post_scn()
|
||||
fix errno assingment in parse_fru_*_scn()
|
||||
* Tue Nov 13 2007 sassmann@suse.de
|
||||
- added patch
|
||||
librtas.libdir-fix-for-64bit.patch
|
||||
libraries need to be in lib64 instead of lib on ppc64,
|
||||
this patch alters the various Makefiles to achieve this.
|
||||
* Wed Nov 07 2007 - sassmann@suse.de
|
||||
* Wed Nov 07 2007 sassmann@suse.de
|
||||
- fixed wrong release number
|
||||
* Mon Nov 05 2007 - sassmann@suse.de
|
||||
* Mon Nov 05 2007 sassmann@suse.de
|
||||
- added arch ppc64 for build
|
||||
- Patch librtas.signed-char.patch removed
|
||||
- Patch librtas.syscall.patch removed
|
||||
* Tue Oct 16 2007 - sassmann@suse.de
|
||||
* Tue Oct 16 2007 sassmann@suse.de
|
||||
- update to librtas-1.3.2 (feature #302692)
|
||||
- patches disabled
|
||||
Patch0: librtas.signed-char.patch
|
||||
Patch1: librtas.syscall.patch
|
||||
* Fri Oct 13 2006 - olh@suse.de
|
||||
* Fri Oct 13 2006 olh@suse.de
|
||||
- fix off by one in open_prop_file
|
||||
* Fri Jan 27 2006 - olh@suse.de
|
||||
* Fri Jan 27 2006 olh@suse.de
|
||||
- package soname symlink
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
* Wed Jan 25 2006 mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Fri Dec 09 2005 - olh@suse.de
|
||||
* Fri Dec 09 2005 olh@suse.de
|
||||
- use unsigned char for fprintf. The rtas_dump output will be
|
||||
corrupt, depending on the input data (#93851)
|
||||
* Fri Oct 28 2005 - olh@suse.de
|
||||
* Fri Oct 28 2005 olh@suse.de
|
||||
- update to version 1.2.4 (130214 - LTC19273)
|
||||
* Wed Oct 26 2005 - olh@suse.de
|
||||
* Wed Oct 26 2005 olh@suse.de
|
||||
- update to version 1.2.3 (130214 - LTC19273)
|
||||
fixes for date parsing and vendor event parsing
|
||||
* Thu Oct 13 2005 - olh@suse.de
|
||||
* Thu Oct 13 2005 olh@suse.de
|
||||
- create 32bit package librtas 1.2
|
||||
|
Loading…
Reference in New Issue
Block a user