]> git.sur5r.net Git - i3/i3/commitdiff
Unlink the resolved path.
authorFernando Tarlá Cardoso Lemos <fernandotcl@gmail.com>
Sat, 20 Nov 2010 22:14:28 +0000 (20:14 -0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 21 Nov 2010 20:36:30 +0000 (21:36 +0100)
src/ipc.c

index fd4966ced71f9e19b73b1f0ed97e3dd835cf779e..f0530904564105cdbe2c156a7f31fd0a08e2ad1a 100644 (file)
--- 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()");