From 8558b8808e7e8deba617908eed99a8213f1bc405 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 26 Oct 2002 10:02:41 +0000 Subject: [PATCH] actually, get_perms is needed by ldapi:// rgeardless of -DSLAP_X_LISTENER_MOD --- servers/slapd/daemon.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index c514fcb672..128fe16119 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -672,16 +672,13 @@ static int slap_open_listener( } } -#ifdef LDAP_PF_LOCAL -#ifdef SLAP_X_LISTENER_MOD +#if defined(LDAP_PF_LOCAL) || defined(SLAP_X_LISTENER_MOD) if ( lud->lud_exts ) { err = get_url_perms( lud->lud_exts, &l.sl_perms, &crit ); - } else -#endif /* SLAP_X_LISTENER_MOD */ - { + } else { l.sl_perms = S_IRWXU; } -#endif /* LDAP_PF_LOCAL */ +#endif /* LDAP_PF_LOCAL || SLAP_X_LISTENER_MOD */ ldap_free_urldesc( lud ); if ( err ) { -- 2.39.5