22/22 no ENODATA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No such error code in winsock.  Instead return EIO.

Probably a better fix is to disable virUUIDGenerateRandomBytes entirely: it's not used by the remote driver and will always fail under Windows because it tries to read /dev/urandom.

Rich.

--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
Index: src/uuid.c
===================================================================
RCS file: /data/cvs/libvirt/src/uuid.c,v
retrieving revision 1.3
diff -u -r1.3 uuid.c
--- src/uuid.c	9 Aug 2007 20:19:12 -0000	1.3
+++ src/uuid.c	7 Dec 2007 11:06:18 -0000
@@ -36,6 +36,10 @@
 
 #define qemudLog(level, msg...) fprintf(stderr, msg)
 
+#ifndef ENODATA
+#define ENODATA EIO
+#endif
+
 static int
 virUUIDGenerateRandomBytes(unsigned char *buf,
                            int buflen)

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]