From: Oliver Kurth Date: Fri, 2 Nov 2018 22:28:21 +0000 (-0700) Subject: Replace function File_Rename() call with File_Move()in dndCommon.c X-Git-Tag: stable-11.0.0~334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73731849187ee088680ba66c9cd61871ececa06d;p=thirdparty%2Fopen-vm-tools.git Replace function File_Rename() call with File_Move()in dndCommon.c --- diff --git a/open-vm-tools/services/plugins/dndcp/dnd/dndCommon.c b/open-vm-tools/services/plugins/dndcp/dnd/dndCommon.c index d9d9d22fb..708f2a5dc 100644 --- a/open-vm-tools/services/plugins/dndcp/dnd/dndCommon.c +++ b/open-vm-tools/services/plugins/dndcp/dnd/dndCommon.c @@ -194,7 +194,7 @@ DnD_AppendPrefixToStagingDir(const char *stagingDir, // IN: } newDir = Unicode_Insert(stagingDir, Unicode_LengthInCodePoints(dndRoot), prefix); - if (0 != File_Rename(stagingDir, newDir)) { + if (!File_Move(stagingDir, newDir, NULL)) { free(newDir); newDir = NULL; }