From 1ed7c2b7a6ae09cc70c48c9553ccfb52746116ca Mon Sep 17 00:00:00 2001 From: Jim Mock <jim@FreeBSD.org> Date: Tue, 30 Jan 2001 16:06:14 +0000 Subject: Fix a problem where the socket wasn't being removed and everybuddy wouldn't run more than once. PR: 24724 Submitted by: Vivek Khera <khera@kciLink.com> --- net-im/ayttm/files/patch-ah | 11 +++++++++++ net/ayttm/files/patch-ah | 11 +++++++++++ net/everybuddy/files/patch-ah | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 net-im/ayttm/files/patch-ah create mode 100644 net/ayttm/files/patch-ah create mode 100644 net/everybuddy/files/patch-ah diff --git a/net-im/ayttm/files/patch-ah b/net-im/ayttm/files/patch-ah new file mode 100644 index 000000000000..57205cc21182 --- /dev/null +++ b/net-im/ayttm/files/patch-ah @@ -0,0 +1,11 @@ +--- src/#main.c~ Mon Jan 29 14:49:29 2001 ++++ 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"); diff --git a/net/ayttm/files/patch-ah b/net/ayttm/files/patch-ah new file mode 100644 index 000000000000..57205cc21182 --- /dev/null +++ b/net/ayttm/files/patch-ah @@ -0,0 +1,11 @@ +--- src/#main.c~ Mon Jan 29 14:49:29 2001 ++++ 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"); diff --git a/net/everybuddy/files/patch-ah b/net/everybuddy/files/patch-ah new file mode 100644 index 000000000000..57205cc21182 --- /dev/null +++ b/net/everybuddy/files/patch-ah @@ -0,0 +1,11 @@ +--- src/#main.c~ Mon Jan 29 14:49:29 2001 ++++ 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"); -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0