~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to servers/slapd/aclparse.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-09-07 13:41:10 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20090907134110-jsdrvn0atu1fex4m
Tags: upstream-2.4.18
ImportĀ upstreamĀ versionĀ 2.4.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* aclparse.c - routines to parse and check acl's */
2
 
/* $OpenLDAP: pkg/ldap/servers/slapd/aclparse.c,v 1.198.2.10 2009/06/27 18:00:32 quanah Exp $ */
 
2
/* $OpenLDAP: pkg/ldap/servers/slapd/aclparse.c,v 1.198.2.11 2009/07/27 20:19:18 quanah Exp $ */
3
3
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
4
 *
5
5
 * Copyright 1998-2009 The OpenLDAP Foundation.
2774
2774
                for ( an = a->acl_attrs; an && !BER_BVISNULL( &an->an_name ); an++ ) {
2775
2775
                        if ( ! first ) *ptr++ = ',';
2776
2776
                        if (an->an_oc) {
2777
 
                                *ptr++ = an->an_oc_exclude ? '!' : '@';
 
2777
                                *ptr++ = ( an->an_flags & SLAP_AN_OCEXCLUDE ) ? '!' : '@';
2778
2778
                                ptr = lutil_strcopy( ptr, an->an_oc->soc_cname.bv_val );
2779
2779
 
2780
2780
                        } else {