]> git.sur5r.net Git - openldap/commitdiff
fix access unparse (ITS#3631)
authorPierangelo Masarati <ando@openldap.org>
Tue, 12 Apr 2005 23:10:48 +0000 (23:10 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 12 Apr 2005 23:10:48 +0000 (23:10 +0000)
servers/slapd/aclparse.c

index 0776e0db26409fc0d1a6bc8fca520b6a86c94291..bcaa03fc85a4882c210d6e1d6f7b5ec337fe35f0 100644 (file)
@@ -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';
        }