Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 10:24:07 -0500
From:      Vivek Khera <khera@kciLink.com>
To:        Brandon Fosdick <bfoz@glue.umd.edu>
Cc:        ports@freebsd.org
Subject:   Re: Everybuddy problem
Message-ID:  <14968.11799.728273.147245@onceler.kciLink.com>
In-Reply-To: <3A773CD4.3DF9AF6A@glue.umd.edu>
References:  <3A773CD4.3DF9AF6A@glue.umd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "BF" == Brandon Fosdick <bfoz@glue.umd.edu> writes:

BF> I just cvsupped and rebuilt/installed world this morning. Afterwards
BF> running everybuddy produces "bind: Address already in use". So I
BF> pkg_deleted everybuddy-0.2.0 and then reinstalled it (via port). I still
BF> get the same error. Any ideas? I tried installing the the package with
BF> the same results.

There was an off-by-one bug in the creation of the socket file name.
Rerun CVS to get the patch which was committed yesterday.  Here's the
one I submitted; don't know if it is exactly the one added to the
port.

Also, you can delete ~/.everybuddy/eb_socke by hand prior to running
everybudy to work around the problem.


--- work/everybuddy-0.2.0/src/#main.c~	Mon Jan 29 14:49:29 2001
+++ work/everybuddy-0.2.0/src/main.c	Mon Jan 29 14:49:29 2001
@@ -279,7 +279,7 @@
 	strcat(local.sun_path, "eb_socket");
 	unlink(local.sun_path);
 	local.sun_family = AF_UNIX;
-	len = strlen(local.sun_path) + sizeof(local.sun_family);
+	len = strlen(local.sun_path) + 1 + sizeof(local.sun_family);
 	if(bind(sock, (struct sockaddr *)&local, len) == -1)
 	{
 		perror("bind");


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14968.11799.728273.147245>