From 564c34d131340a750278810ffa9ff9e94a7a0685 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 3 Dec 2004 08:41:06 +0000 Subject: [PATCH] fix ITS#3416 --- servers/slapd/aclparse.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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" ); -- 2.39.5