OBS User unknown 2007-01-08 16:50:48 +00:00 committed by Git OBS Bridge
parent ef38e092b1
commit 75d3645758
3 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,11 @@
--- lib/device/device.c
+++ lib/device/device.c 2007/01/08 15:11:19
@@ -72,7 +72,7 @@
/* Check for msdos partition table */
part_magic = buf + PART_MAGIC_OFFSET/sizeof(buf[0]);
if ((*part_magic == xlate16(PART_MAGIC))) {
- part = (struct partition *) (buf + PART_OFFSET);
+ part = (struct partition *) (((unsigned char*)buf) + PART_OFFSET);
for (p = 0; p < 4; p++, part++) {
/* Table is invalid if boot indicator not 0 or 0x80 */
if ((part->boot_ind & 0x7f)) {

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 8 16:15:23 CET 2007 - fehr@suse.de
- fix buggy pointer arithmetic (#232117)
-------------------------------------------------------------------
Mon Dec 18 10:39:49 CET 2006 - fehr@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package lvm2 (Version 2.02.17)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007 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.
#
@ -21,13 +21,14 @@ PreReq: %fillup_prereq %insserv_prereq
%endif
Autoreqprov: on
Version: 2.02.17
Release: 1
Release: 5
Summary: LVM2 Tools
Source: LVM2.%{version}.tar.bz2
Source1: lvm.conf
Source2: boot.lvm
Source3: sysconfig.lvm
Patch: improve_probing.diff
Patch1: fix_pointer_arithmetic.diff
Patch2: no-inc-audit.diff
Patch3: no_buildroot_shared.diff
Patch4: sys_mount_instead_linux_fs.diff
@ -44,6 +45,7 @@ Volume Manager.
%prep
%setup -n LVM2.%{version}
%patch
%patch1
%patch2
%patch3
%patch4
@ -176,6 +178,8 @@ install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/var/adm/fillup-templates
%{_mandir}/man8/vgsplit.8.gz
%changelog -n lvm2
* Mon Jan 08 2007 - fehr@suse.de
- fix buggy pointer arithmetic (#232117)
* Mon Dec 18 2006 - fehr@suse.de
- update to new version 2.02.17
Add missing pvremove error message when device doesn't exist.