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>
This commit is contained in:
parent
4c1b60ecfd
commit
1ed7c2b7a6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37803
3 changed files with 33 additions and 0 deletions
11
net-im/ayttm/files/patch-ah
Normal file
11
net-im/ayttm/files/patch-ah
Normal file
|
@ -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");
|
11
net/ayttm/files/patch-ah
Normal file
11
net/ayttm/files/patch-ah
Normal file
|
@ -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");
|
11
net/everybuddy/files/patch-ah
Normal file
11
net/everybuddy/files/patch-ah
Normal file
|
@ -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");
|
Loading…
Reference in a new issue