]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix OS X HGFS client access error
authorVMware, Inc <>
Mon, 22 Aug 2011 20:10:05 +0000 (13:10 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 22 Aug 2011 20:10:05 +0000 (13:10 -0700)
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 <mvanzin@vmware.com>
open-vm-tools/modules/freebsd/vmhgfs/vnopscommon.c

index e4aa68b7b2e5cbef6b68a67fc5d91bf8f38bd65c..17dc3e21607f413c069da8cca65b599544068634 100644 (file)
@@ -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);
       }