Unlink the resolved path.

This commit is contained in:
Fernando Tarlá Cardoso Lemos 2010-11-20 20:14:28 -02:00 committed by Michael Stapelberg
parent 767dcea7ba
commit e2517bd48c

View File

@ -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()");