projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf3e23a
)
fix: unlinking unix domain sockets on freebsd
author
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 25 May 2011 15:19:07 +0000
(15:19 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 25 May 2011 15:19:07 +0000
(15:19 +0000)
src/util/service.c
patch
|
blob
|
history
diff --git
a/src/util/service.c
b/src/util/service.c
index e88ac77c8d4d9773e9d9ecde859bb968e883e7c7..834b27dd683b1e240f34878c1e8b07574ada040e 100644
(file)
--- a/
src/util/service.c
+++ b/
src/util/service.c
@@
-769,9
+769,12
@@
add_unixpath (struct sockaddr **saddrs,
#if LINUX
un->sun_path[0] = '\0';
slen = sizeof (struct sockaddr_un);
+#elif FREEBSD
+ slen += sizeof (sa_family_t) + 1 ;
#else
- slen += sizeof (sa_family_t);
+ slen += sizeof (sa_family_t)
;
#endif
+
*saddrs = (struct sockaddr*) un;
*saddrlens = slen;
#else