From: VMware, Inc <> Date: Mon, 22 Aug 2011 20:10:05 +0000 (-0700) Subject: Fix OS X HGFS client access error X-Git-Tag: 2011.08.21-471295~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6db0aa82bf56a258a668beadbc0a7dc46f6d6639;p=thirdparty%2Fopen-vm-tools.git Fix OS X HGFS client access error The client would previously return EPERM for these access errors however, all other file systems return EACESS so changing to comply. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/modules/freebsd/vmhgfs/vnopscommon.c b/open-vm-tools/modules/freebsd/vmhgfs/vnopscommon.c index e4aa68b7b..17dc3e216 100644 --- a/open-vm-tools/modules/freebsd/vmhgfs/vnopscommon.c +++ b/open-vm-tools/modules/freebsd/vmhgfs/vnopscommon.c @@ -2984,7 +2984,7 @@ HgfsAccessInt(struct vnode *vp, // IN: Vnode to check access for hgfsAttrV2.ownerPerms | hgfsAttrV2.groupPerms | hgfsAttrV2.otherPerms; } if (!IsModeCompatible(mode, effectivePermissions)) { - ret = EPERM; + ret = EACCES; DEBUG(VM_DEBUG_FAIL, "HgfsAccessInt denied access: %s (%d, %d)\n", HGFS_VP_TO_FILENAME(vp), mode, effectivePermissions); }