From: Pierangelo Masarati Date: Fri, 3 Dec 2004 08:41:06 +0000 (+0000) Subject: fix ITS#3416 X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~147 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=564c34d131340a750278810ffa9ff9e94a7a0685;p=openldap fix ITS#3416 --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index d7a99c0351..17f0274d56 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -1050,7 +1050,7 @@ parse_acl( acl_usage(); } - if ( BER_BVISEMPTY( &b->a_peername_pat ) ) { + if ( !BER_BVISEMPTY( &b->a_peername_pat ) ) { fprintf( stderr, "%s: line %d: " "peername pattern already specified.\n", fname, lineno ); @@ -2240,8 +2240,11 @@ print_acl( Backend *be, AccessControl *a ) if ( ! first ) fprintf( stderr, "," ); if (an->an_oc) { fputc( an->an_oc_exclude ? '!' : '@', stderr); + fputs( an->an_oc->soc_cname.bv_val, stderr ); + + } else { + fputs( an->an_name.bv_val, stderr ); } - fputs( an->an_name.bv_val, stderr ); first = 0; } fprintf( stderr, "\n" );