Hello community, here is the log from the commit of package kexec-tools for openSUSE:Factory checked in at Mon Jul 11 10:36:22 CEST 2011.
-------- --- kexec-tools/kexec-tools.changes 2011-05-17 11:13:46.000000000 +0200 +++ /mounts/work_src_done/STABLE/kexec-tools/kexec-tools.changes 2011-07-10 23:48:26.000000000 +0200 @@ -1,0 +2,5 @@ +Sun Jul 10 23:48:14 CEST 2011 - meiss...@suse.de + +- fixed strncat sizse argument on ppc + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- kexec-fix-strncat.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kexec-tools.spec ++++++ --- /var/tmp/diff_new_pack.WUgxFL/_old 2011-07-11 10:36:03.000000000 +0200 +++ /var/tmp/diff_new_pack.WUgxFL/_new 2011-07-11 10:36:03.000000000 +0200 @@ -29,7 +29,7 @@ AutoReqProv: on Summary: Tools for fast kernel loading Version: 2.0.2 -Release: 5 +Release: 7 Source: %{name}-%{version}.tar.bz2 Source1: kexec-bootloader Source2: kexec-bootloader.8.txt @@ -38,6 +38,7 @@ Patch0: %{name}-no-vga-output.diff Patch1: %{name}-xen-static.diff Patch2: gcc-no-undefined-flag-fix.patch +Patch3: kexec-fix-strncat.patch Url: ftp://kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build #!BuildIgnore: fop @@ -72,6 +73,7 @@ %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build # disable as-needed ++++++ kexec-fix-strncat.patch ++++++ Index: kexec-tools-2.0.2/kexec/arch/ppc64/fs2dt.c =================================================================== --- kexec-tools-2.0.2.orig/kexec/arch/ppc64/fs2dt.c +++ kexec-tools-2.0.2/kexec/arch/ppc64/fs2dt.c @@ -594,7 +594,7 @@ static void putnode(void) * pseries/hvcterminal is supported. */ strcpy(filename, pathname); - strncat(filename, "linux,stdout-path", MAXPATH); + strncat(filename, "linux,stdout-path", MAXPATH-strlen(filename)-1); fd = open(filename, O_RDONLY); if (fd == -1) { printf("Unable to find %s, printing from purgatory is diabled\n", @@ -618,8 +618,8 @@ static void putnode(void) read(fd, buff, statbuf.st_size); close(fd); strncpy(filename, "/proc/device-tree/", MAXPATH); - strncat(filename, buff, MAXPATH); - strncat(filename, "/compatible", MAXPATH); + strncat(filename, buff, MAXPATH-strlen(filename)-1); + strncat(filename, "/compatible", MAXPATH-strlen(filename)-1); fd = open(filename, O_RDONLY); if (fd == -1) { printf("Unable to find %s printing from purgatory is diabled\n", ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org