Unlink the resolved path.
This commit is contained in:
parent
767dcea7ba
commit
e2517bd48c
@ -594,7 +594,7 @@ int ipc_create_socket(const char *filename) {
|
|||||||
free(copy);
|
free(copy);
|
||||||
|
|
||||||
/* Unlink the unix domain socket before */
|
/* Unlink the unix domain socket before */
|
||||||
unlink(filename);
|
unlink(resolved);
|
||||||
|
|
||||||
if ((sockfd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) {
|
if ((sockfd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) {
|
||||||
perror("socket()");
|
perror("socket()");
|
||||||
|
Loading…
Reference in New Issue
Block a user