]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
HGFS: Fix Linux client to work with Perforce versioning
authorVMware, Inc <>
Wed, 18 Sep 2013 03:13:28 +0000 (20:13 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:01:52 +0000 (22:01 -0700)
commite6b0b955c2e4e6fc6a53bd1cb32f74bb70ab582c
tree91fefd802baef92a6f943abff6356fa6dd30b529
parentb34fff0c862b0ba8c6f93fc96a335d3a8e243f9c
HGFS: Fix Linux client to work with Perforce versioning

The problem is that perforce client uses rename operation upon a temp
file which has read-only attributes. The operation then fails with
permission denied.

The fix removes the read only attribute and retries the rename operation
again as per the delete operation. This occurs on Windows HGFS servers
as the target of the rename operation to be replaced has the read only
attribute set. The prevents a rename even if they want to overwrite the
target if it exists. So removing the read only flag is required.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/modules/linux/vmhgfs/inode.c