From 98294f1125386fe96d847124aba4a980508d30a3 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 12 Apr 2005 23:10:48 +0000 Subject: [PATCH] fix access unparse (ITS#3631) --- servers/slapd/aclparse.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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'; } -- 2.39.5