From: VMware, Inc <> Date: Tue, 24 Aug 2010 18:30:20 +0000 (-0700) Subject: Fix bug #355531 by removing kill-switch for Solaris guest operations. X-Git-Tag: 2010.08.24-292196~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4429cd150d26b7f339f5f7d9846a3ed994f69274;p=thirdparty%2Fopen-vm-tools.git Fix bug #355531 by removing kill-switch for Solaris guest operations. This changeset removes the VIX_ENABLE_SOLARIS_GUESTOPS macro to enable Solaris guest operations by default. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/services/plugins/vix/vixTools.c b/open-vm-tools/services/plugins/vix/vixTools.c index 202db3cc1..51321102b 100644 --- a/open-vm-tools/services/plugins/vix/vixTools.c +++ b/open-vm-tools/services/plugins/vix/vixTools.c @@ -365,8 +365,7 @@ static VixError VixToolsImpersonateUserImplEx(char const *credentialTypeStr, char const *obfuscatedNamePassword, void **userToken); -#if defined(_WIN32) || defined(linux) || \ - (defined(sun) && defined(VIX_ENABLE_SOLARIS_GUESTOPS)) +#if defined(_WIN32) || defined(linux) || defined(sun) static VixError VixToolsDoesUsernameMatchCurrentUser(const char *username); #endif @@ -4620,12 +4619,10 @@ VixToolsImpersonateUserImplEx(char const *credentialTypeStr, // IN } /////////////////////////////////////////////////////////////////////// -#if defined(__FreeBSD__) || \ - (defined(sun) && !defined(VIX_ENABLE_SOLARIS_GUESTOPS)) +#if defined(__FreeBSD__) err = VIX_E_NOT_SUPPORTED; /////////////////////////////////////////////////////////////////////// -#elif defined(_WIN32) || defined(linux) || \ - (defined(sun) && defined(VIX_ENABLE_SOLARIS_GUESTOPS)) +#elif defined(_WIN32) || defined(linux) || defined(sun) { Bool success = FALSE; AuthToken authToken; @@ -4791,7 +4788,7 @@ VixToolsUnimpersonateUser(void *userToken) if (PROCESS_CREATOR_USER_TOKEN != userToken) { #if defined(_WIN32) Impersonate_Undo(); -#elif defined(linux) || (defined(sun) && defined(VIX_ENABLE_SOLARIS_GUESTOPS)) +#elif defined(linux) || defined(sun) ProcMgr_ImpersonateUserStop(); #endif } @@ -4819,8 +4816,7 @@ VixToolsLogoutUser(void *userToken) // IN return; } -#if !defined(__FreeBSD__) && \ - !(defined(sun) && !defined(VIX_ENABLE_SOLARIS_GUESTOPS)) +#if !defined(__FreeBSD__) if (NULL != userToken) { AuthToken authToken = (AuthToken) userToken; Auth_CloseToken(authToken); @@ -5649,8 +5645,7 @@ abort: #endif -#if defined(_WIN32) || defined(linux) || \ - (defined(sun) && defined(VIX_ENABLE_SOLARIS_GUESTOPS)) +#if defined(_WIN32) || defined(linux) || defined(sun) /* *----------------------------------------------------------------------------- * @@ -5855,8 +5850,7 @@ abort: return err; } -#endif /* #if defined(_WIN32) || defined(linux) || - (defined(sun) && defined(VIX_ENABLE_SOLARIS_GUESTOPS)) */ +#endif /* #if defined(_WIN32) || defined(linux) || defined(sun) */ /*