mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
24 lines
759 B
Plaintext
24 lines
759 B
Plaintext
$NetBSD: patch-ac,v 1.3 2012/12/25 21:02:15 joerg Exp $
|
|
|
|
--- guestd/foreignVMToolsDaemon.c.orig 2008-08-08 07:01:56.000000000 +0000
|
|
+++ guestd/foreignVMToolsDaemon.c
|
|
@@ -55,7 +55,7 @@
|
|
#include <netinet/tcp.h>
|
|
#include <arpa/inet.h>
|
|
#include <fcntl.h>
|
|
-#if defined(__FreeBSD__) || defined(sun) || defined(__APPLE__)
|
|
+#if defined(__FreeBSD__) || defined(sun) || defined(__APPLE__) || defined(__NetBSD__)
|
|
#include <unistd.h>
|
|
#else
|
|
#include <linux/unistd.h>
|
|
@@ -833,8 +833,7 @@ ForeignToolsSetProperties(ForeignVMTools
|
|
* Do some validation
|
|
*/
|
|
if ((NULL == asyncCommand)
|
|
- || (NULL == requestMsg)
|
|
- || (0 > requestMsg->bufferSize)) {
|
|
+ || (NULL == requestMsg)) {
|
|
err = VIX_E_INVALID_ARG;
|
|
goto abort;
|
|
}
|