]> git.sur5r.net Git - i3/i3/commitdiff
bugfix: use globbed instead of filename when unlinking ipc socket
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Mar 2010 14:05:16 +0000 (15:05 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Mar 2010 14:05:16 +0000 (15:05 +0100)
src/ipc.c

index dbd0a69747d9795f763fefcd5d190190106337c1..1937d55d4662575d4738bda3ec8fdde556140458 100644 (file)
--- 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()");