From: Fernando Tarlá Cardoso Lemos Date: Sat, 20 Nov 2010 22:14:28 +0000 (-0200) Subject: Unlink the resolved path. X-Git-Tag: tree-pr1~74 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e2517bd48c5eb64dda325c519186389e3a75622c;p=i3%2Fi3 Unlink the resolved path. --- diff --git a/src/ipc.c b/src/ipc.c index fd4966ce..f0530904 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -594,7 +594,7 @@ int ipc_create_socket(const char *filename) { free(copy); /* Unlink the unix domain socket before */ - unlink(filename); + unlink(resolved); if ((sockfd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) { perror("socket()");