mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
* libvirt.spec.in proxy/Makefile.am: do the chown at the rpm packaging
level, to allow build as non-root * src/xml.c: fix bug #197583 raised by markmc Daniel
This commit is contained in:
parent
567b42ce6a
commit
4fcc208fa4
@ -1,3 +1,9 @@
|
||||
Tue Jul 4 13:50:55 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* libvirt.spec.in proxy/Makefile.am: do the chown at the rpm packaging
|
||||
level, to allow build as non-root
|
||||
* src/xml.c: fix bug #197583 raised by markmc
|
||||
|
||||
Mon Jul 3 15:41:58 EDT 2006 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* NEWS docs/* configure.in libvirt.spec.in include/libvirt/libvirt.h:
|
||||
|
@ -14,7 +14,7 @@ Requires: readline
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: readline-devel
|
||||
Obsoletes: libvir
|
||||
ExclusiveArch: i386 x86_64 ia64
|
||||
ExclusiveArch: i386 x86_64
|
||||
|
||||
%description
|
||||
This C library provides an API to use the Xen virtualization framework,
|
||||
@ -75,7 +75,7 @@ rm -fr %{buildroot}
|
||||
%doc %{_mandir}/man1/virsh.1*
|
||||
%{_bindir}/virsh
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_libexecdir}/libvirt_proxy
|
||||
%attr(4755, root, root) %{_libexecdir}/libvirt_proxy
|
||||
|
||||
%files devel
|
||||
%defattr(-, root, root)
|
||||
|
@ -16,5 +16,4 @@ libvirt_proxy_DEPENDENCIES =
|
||||
libvirt_proxy_LDADD =
|
||||
|
||||
install-exec-hook:
|
||||
chown root:root $(DESTDIR)$(libexecdir)/libvirt_proxy
|
||||
chmod u+s $(DESTDIR)$(libexecdir)/libvirt_proxy
|
||||
|
15
src/xml.c
15
src/xml.c
@ -591,27 +591,32 @@ virDomainParseXMLOSDesc(xmlNodePtr node, virBufferPtr buf, int bootloader)
|
||||
if ((type == NULL)
|
||||
&& (xmlStrEqual(cur->name, BAD_CAST "type"))) {
|
||||
txt = cur->children;
|
||||
if ((txt->type == XML_TEXT_NODE) && (txt->next == NULL))
|
||||
if ((txt != NULL) && (txt->type == XML_TEXT_NODE) &&
|
||||
(txt->next == NULL))
|
||||
type = txt->content;
|
||||
} else if ((kernel == NULL) &&
|
||||
(xmlStrEqual(cur->name, BAD_CAST "kernel"))) {
|
||||
txt = cur->children;
|
||||
if ((txt->type == XML_TEXT_NODE) && (txt->next == NULL))
|
||||
if ((txt != NULL) && (txt->type == XML_TEXT_NODE) &&
|
||||
(txt->next == NULL))
|
||||
kernel = txt->content;
|
||||
} else if ((root == NULL) &&
|
||||
(xmlStrEqual(cur->name, BAD_CAST "root"))) {
|
||||
txt = cur->children;
|
||||
if ((txt->type == XML_TEXT_NODE) && (txt->next == NULL))
|
||||
if ((txt != NULL) && (txt->type == XML_TEXT_NODE) &&
|
||||
(txt->next == NULL))
|
||||
root = txt->content;
|
||||
} else if ((initrd == NULL) &&
|
||||
(xmlStrEqual(cur->name, BAD_CAST "initrd"))) {
|
||||
txt = cur->children;
|
||||
if ((txt->type == XML_TEXT_NODE) && (txt->next == NULL))
|
||||
if ((txt != NULL) && (txt->type == XML_TEXT_NODE) &&
|
||||
(txt->next == NULL))
|
||||
initrd = txt->content;
|
||||
} else if ((cmdline == NULL) &&
|
||||
(xmlStrEqual(cur->name, BAD_CAST "cmdline"))) {
|
||||
txt = cur->children;
|
||||
if ((txt->type == XML_TEXT_NODE) && (txt->next == NULL))
|
||||
if ((txt != NULL) && (txt->type == XML_TEXT_NODE) &&
|
||||
(txt->next == NULL))
|
||||
cmdline = txt->content;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user