def _check_symlink_ownership(path, user, group):
 (cur_user, cur_group) = _get_symlink_ownership(path)
 return ((cur_user == user) and (cur_group == group))

def _check_symlink_ownership ( path , user , group ) : ( cur_user , cur_group ) = _get_symlink_ownership ( path ) return ( ( cur_user == user ) and ( cur_group == group ) )
check if the symlink ownership matches the specified user and group .