]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix VMHSUtilFileMove and clarify comments of File_Replace
authorVMware, Inc <>
Wed, 18 Sep 2013 03:25:21 +0000 (20:25 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:06:58 +0000 (22:06 -0700)
VMHSUtilFileMove has been broken since 2008 and no one has noticed,
so I would be happy to remove the entire mv command from VMHS if
no one would miss it.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/file/filePosix.c

index 4eea362c4fe2914c7758c0b8551b516853454170..a46a5b74cdcba2d90e73ba636fc1b6e0632801d3 100644 (file)
@@ -2338,8 +2338,8 @@ File_IsSameFile(ConstUnicode path1,  // IN:
  *
  * File_Replace --
  *
- *      Replace old file with new file, and attempt to reproduce
- *      file permissions.  A NULL value for either the oldName or
+ *      Replace old file (destination) with new file (source), and attempt to
+ *      reproduce file permissions.  A NULL value for either the oldName or
  *      newName will result in failure and errno will be set to EFAULT.
  *
  * Results: