bugfix: use globbed instead of filename when unlinking ipc socket

This commit is contained in:
Michael Stapelberg 2010-03-27 15:05:16 +01:00
parent dc9bc89172
commit 5e2ab5be65
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,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(globbed);
if ((sockfd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) { if ((sockfd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) {
perror("socket()"); perror("socket()");