From: Michael Stapelberg Date: Sat, 27 Mar 2010 14:05:16 +0000 (+0100) Subject: bugfix: use globbed instead of filename when unlinking ipc socket X-Git-Tag: 3.e~6^2~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5e2ab5be655da22d91f2f320e02d8a549270f35e;p=i3%2Fi3 bugfix: use globbed instead of filename when unlinking ipc socket --- diff --git a/src/ipc.c b/src/ipc.c index dbd0a697..1937d55d 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -511,7 +511,7 @@ int ipc_create_socket(const char *filename) { free(copy); /* Unlink the unix domain socket before */ - unlink(filename); + unlink(globbed); if ((sockfd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) { perror("socket()");