chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support chrooting/setting of ioprio when spawning
[elogind.git]
/
socket-util.c
diff --git
a/socket-util.c
b/socket-util.c
index 46a6e91bb0497554e54feba267695fc8f207f9a8..0282dd2f3fe1b3ae367e1243caac8ba4a2b86660 100644
(file)
--- a/
socket-util.c
+++ b/
socket-util.c
@@
-69,7
+69,7
@@
int socket_address_parse(SocketAddress *a, const char *s) {
memcpy(a->sockaddr.un.sun_path, s, l);
a->size = sizeof(sa_family_t) + l + 1;
memcpy(a->sockaddr.un.sun_path, s, l);
a->size = sizeof(sa_family_t) + l + 1;
- } else if (*s == '
=
') {
+ } else if (*s == '
@
') {
/* Abstract AF_UNIX socket */
size_t l;
/* Abstract AF_UNIX socket */
size_t l;
@@
-261,7
+261,7
@@
int socket_address_print(const SocketAddress *a, char **p) {
if (!(ret = new(char, sizeof(a->sockaddr.un.sun_path)+1)))
return -ENOMEM;
if (!(ret = new(char, sizeof(a->sockaddr.un.sun_path)+1)))
return -ENOMEM;
- ret[0] = '
=
';
+ ret[0] = '
@
';
memcpy(ret+1, a->sockaddr.un.sun_path+1, sizeof(a->sockaddr.un.sun_path)-1);
ret[sizeof(a->sockaddr.un.sun_path)] = 0;
memcpy(ret+1, a->sockaddr.un.sun_path+1, sizeof(a->sockaddr.un.sun_path)-1);
ret[sizeof(a->sockaddr.un.sun_path)] = 0;