]> git.sur5r.net Git - openldap/commitdiff
actually, get_perms is needed by ldapi:// rgeardless of -DSLAP_X_LISTENER_MOD
authorPierangelo Masarati <ando@openldap.org>
Sat, 26 Oct 2002 10:02:41 +0000 (10:02 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 26 Oct 2002 10:02:41 +0000 (10:02 +0000)
servers/slapd/daemon.c

index c514fcb672ba0be87d1e2b4c467c0a5a3ecb367f..128fe161196961e8079446953187641db639e0aa 100644 (file)
@@ -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 ) {