Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
convert: drop arguments other than 'path' from would_convert_to_git()
[gitweb.git]
/
unix-socket.c
diff --git
a/unix-socket.c
b/unix-socket.c
index 01f119f9700791ddc59a81cdc80fd365e678622a..91bd6b89d4946bbd80a0b9e9e7d6af21d6a2f61a 100644
(file)
--- a/
unix-socket.c
+++ b/
unix-socket.c
@@
-99,11
+99,12
@@
int unix_stream_listen(const char *path)
struct sockaddr_un sa;
struct unix_sockaddr_context ctx;
+ unlink(path);
+
if (unix_sockaddr_init(&sa, path, &ctx) < 0)
return -1;
fd = unix_stream_socket();
- unlink(path);
if (bind(fd, (struct sockaddr *)&sa, sizeof(sa)) < 0)
goto fail;