[libvirt] [PATCH] qemudOpenMonitor: fix open(2) error check

Daniel Veillard veillard at redhat.com
Fri Jul 25 08:42:10 UTC 2008


On Thu, Jul 24, 2008 at 03:48:47PM -0400, Guido Günther wrote:
> Hi,
> open returns -1 on failure. Pointed out by Guido Trotter on:
> 
> http://bugs.debian.org/492250
> 
> Patch against current CVS attached.

  Hum, good catch, I checked for other occurences of this mistake but
everywhere else we use < 0 or == -1 to detect the failure.

  Applied and commited,

   thanks !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/




More information about the libvir-list mailing list