]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Backing out the previous change to vixTools.c
authorOliver Kurth <okurth@vmware.com>
Wed, 10 Apr 2019 21:14:51 +0000 (14:14 -0700)
committerOliver Kurth <okurth@vmware.com>
Wed, 10 Apr 2019 21:14:51 +0000 (14:14 -0700)
As the code committed was not the one reviewed but another version of the
fix under exploration, reverting the previous change.

open-vm-tools/services/plugins/vix/vixTools.c

index 89947da3fd5f546a8377377e3ff44bdccbb8b1af..15b0a8bdffe3226f012e266a22d834feb892f563 100644 (file)
@@ -4980,11 +4980,7 @@ VixToolsInitiateFileTransferToGuest(VixCommandRequestHeader *requestMsg)  // IN
       goto abort;
    }
 
-#ifdef _WIN32
    File_GetPathName(guestPathName, &dirName, &baseName);
-#else
-   File_SplitName(guestPathName, NULL, &dirName, &baseName);
-#endif
    if ((NULL == dirName) || (NULL == baseName)) {
       g_debug("%s: File_GetPathName failed for '%s', dirName='%s', "
               "baseName='%s'.\n", __FUNCTION__, guestPathName,
@@ -4994,19 +4990,6 @@ VixToolsInitiateFileTransferToGuest(VixCommandRequestHeader *requestMsg)  // IN
       goto abort;
    }
 
-/*
-#ifndef _WIN32
-   if ('\0' == *dirName && '/' == *guestPathName) {
-      *
-       * dirName is empty and represents root directory
-       * For *nix like paths, changing dirName to '/'
-       *
-      free(dirName);
-      dirName = Util_SafeStrdup("/");
-   }
-#endif
-*/
-
    if (!File_IsDirectory(dirName)) {
 #ifdef _WIN32
       DWORD sysErr = GetLastError();