From: VMware, Inc <> Date: Wed, 26 Jan 2011 01:45:09 +0000 (-0800) Subject: Internal branch sync. Included in this change: X-Git-Tag: stable-8.8.0~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00a9d39abed51b0e0c6d720ec55d93e75cc41447;p=thirdparty%2Fopen-vm-tools.git Internal branch sync. Included in this change: . VIX: more solaris fixes. . changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/misc/hostType.c b/open-vm-tools/lib/misc/hostType.c index 1d42d362f..cb05e840b 100644 --- a/open-vm-tools/lib/misc/hostType.c +++ b/open-vm-tools/lib/misc/hostType.c @@ -30,11 +30,16 @@ #include "hostType.h" #include "str.h" -#if defined(VMX86_SERVER) || (defined(VMX86_VPX) && defined(linux)) +/* + * XXX see bug 651592 for how to make this not warn on newer linux hosts + * that have deprecated sysctl. + */ +#if defined(VMX86_SERVER) || ((defined(VMX86_VPX) || defined(VMX86_VMACORE)) && defined(linux)) #include #include #include #include "uwvmkAPI.h" +#define DO_REAL_HOST_CHECK #endif #define LGPFX "HOSTTYPE:" @@ -66,7 +71,7 @@ static int HostTypeOSVMKernelType(void) { -#if defined(VMX86_SERVER) || (defined(VMX86_VPX) && defined(linux)) +#ifdef DO_REAL_HOST_CHECK static int vmkernelType = -1; if (vmkernelType == -1) { @@ -113,7 +118,7 @@ HostTypeOSVMKernelType(void) return (vmkernelType); #else - /* Non-ESX builds are never running on the VMKernel. */ + /* Non-linux builds are never running in a userworld */ return 0; #endif } diff --git a/open-vm-tools/services/plugins/vix/vixTools.c b/open-vm-tools/services/plugins/vix/vixTools.c index 285285657..837dbb923 100644 --- a/open-vm-tools/services/plugins/vix/vixTools.c +++ b/open-vm-tools/services/plugins/vix/vixTools.c @@ -5757,7 +5757,7 @@ abort: VixError VixToolsSetFileAttributes(VixCommandRequestHeader *requestMsg) // IN { -#if (defined(_WIN32) || defined(__linux__)) +#if (defined(_WIN32) || defined(__linux__) || defined(sun)) VixError err = VIX_OK; Bool impersonatingVMWareUser = FALSE; void *userToken = NULL; @@ -5837,7 +5837,7 @@ VixToolsSetFileAttributes(VixCommandRequestHeader *requestMsg) // IN } #else if (windowsAttributeSpecified) { - Debug("%s: Invalid attributes received for Unix Guest\n", + Debug("%s: Invalid attributes received for Posix Guest\n", __FUNCTION__); err = VIX_E_INVALID_ARG; goto abort;