From: Pierangelo Masarati Date: Tue, 19 Jul 2005 00:30:34 +0000 (+0000) Subject: trim unused (wrong) code X-Git-Tag: OPENLDAP_AC_BP~350 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=11009733014f4e793f99585e55146d543a87ac0c;p=openldap trim unused (wrong) code --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 726ca5b596..f84cdddaa6 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1005,16 +1005,6 @@ static int slap_open_listener( #ifdef LDAP_PF_LOCAL case AF_LOCAL: { char *addr = ((struct sockaddr_un *)*sal)->sun_path; -#if 0 /* don't muck with socket perms */ - if ( chmod( addr, l.sl_perms ) < 0 && crit ) { - int err = sock_errno(); - Debug( LDAP_DEBUG_ANY, "daemon: fchmod(%ld) failed errno=%d (%s)", - (long) l.sl_sd, err, sock_errstr(err) ); - tcp_close( l.sl_sd ); - slap_free_listener_addresses(psal); - return -1; - } -#endif l.sl_name.bv_len = strlen(addr) + sizeof("PATH=") - 1; l.sl_name.bv_val = ber_memalloc( l.sl_name.bv_len + 1 ); snprintf( l.sl_name.bv_val, l.sl_name.bv_len + 1,