[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: AF_LOCAL socket problems. (ITS#877)
On Sat, Nov 04, 2000 at 03:13:33PM +0000, gerritthomson@start.com.au wrote:
> Full_Name: Gerrit Thomson
> Version: 2.06
> OS: redhat 7
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (136.186.1.117)
>
>
> A possible problem with "getaddressinfo" for the unix domain socket. The file
> name is
> not put into the sai->ai_addr structure as expected in daemon.c.
There is a bug in that line, it should something like
case AF_LOCAL: {
char *addr = ((struct sockaddr_un *)sai->ai_addr)->sun_path;
if ( chmod( addr, S_IRWXU ) < 0 ) {
It's fixed in CVS, and will be in 2.0.7.
Thanks for the report,
Stig