access: fix to be POSIX compliant

This commit is contained in:
Jessica Hamilton 2014-11-02 08:49:49 +13:00
parent 67555ed829
commit 22ea34153f

View File

@ -3925,7 +3925,7 @@ check_access_permissions(int accessMode, mode_t mode, gid_t nodeGroupID,
permissions = otherPermissions;
}
return (accessMode & ~permissions) == 0 ? B_OK : B_NOT_ALLOWED;
return (accessMode & ~permissions) == 0 ? B_OK : B_PERMISSION_DENIED;
}