diff --git a/libvirt-0.4.0-conffile-size.patch b/libvirt-0.4.0-conffile-size.patch new file mode 100644 index 0000000..5e8fae6 --- /dev/null +++ b/libvirt-0.4.0-conffile-size.patch @@ -0,0 +1,12 @@ +diff -rup libvirt-0.4.0.orig/src/conf.c libvirt-0.4.0.new/src/conf.c +--- libvirt-0.4.0.orig/src/conf.c 2007-12-12 08:30:49.000000000 -0500 ++++ libvirt-0.4.0.new/src/conf.c 2008-01-02 16:30:12.000000000 -0500 +@@ -705,7 +705,7 @@ error: + virConfPtr + __virConfReadFile(const char *filename) + { +- char content[4096]; ++ char content[8192]; + int fd; + int len; + diff --git a/libvirt.spec b/libvirt.spec index 63389fc..391b2e4 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -11,10 +11,11 @@ Summary: Library providing a simple API virtualization Name: libvirt Version: 0.4.0 -Release: 1%{?dist}%{?extra_release} +Release: 2%{?dist}%{?extra_release} License: LGPL Group: Development/Libraries Source: libvirt-%{version}.tar.gz +Patch1: libvirt-%{version}-conffile-size.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root URL: http://libvirt.org/ BuildRequires: python python-devel @@ -84,6 +85,7 @@ of recent versions of Linux (and other OSes). %prep %setup -q +%patch1 -p1 %build %configure --with-init-script=redhat --with-qemud-pid-file=%{_localstatedir}/run/libvirt_qemud.pid --with-remote-file=%{_localstatedir}/run/libvirtd.pid @@ -203,6 +205,9 @@ fi %doc docs/examples/python %changelog +* Wed Jan 2 2008 Daniel P. Berrange - 0.4.0-2.fc7 +- Fix reading large config files (rhbz #426425) + * Tue Dec 18 2007 Daniel Veillard - 0.4.0-1.fc7 - Release of 0.4.0 - SASL based authentication