From: Pierangelo Masarati Date: Tue, 12 Apr 2005 23:10:48 +0000 (+0000) Subject: fix access unparse (ITS#3631) X-Git-Tag: OPENLDAP_AC_BP~908 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=98294f1125386fe96d847124aba4a980508d30a3;p=openldap fix access unparse (ITS#3631) --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index 0776e0db26..bcaa03fc85 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -1853,14 +1853,12 @@ accessmask2str( slap_mask_t mask, char *buf, int debug ) if ( ACL_PRIV_ISSET(mask, ACL_PRIV_WRITE) ) { none = 0; *ptr++ = 'w'; - } - if ( ACL_PRIV_ISSET(mask, ACL_PRIV_WADD) ) { + } else if ( ACL_PRIV_ISSET(mask, ACL_PRIV_WADD) ) { none = 0; *ptr++ = 'a'; - } - if ( ACL_PRIV_ISSET(mask, ACL_PRIV_WDEL) ) { + } else if ( ACL_PRIV_ISSET(mask, ACL_PRIV_WDEL) ) { none = 0; *ptr++ = 'z'; }