diff options
author | Ray Strode <rstrode@redhat.com> | 2010-10-06 17:57:34 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2010-10-06 17:57:34 -0400 |
commit | f0da04ca88975f0c0a06d6a0f6568b255c5e1cb3 (patch) | |
tree | 1c14401ba3bec94b7b448ac065cb662af617685b /src/client | |
parent | 9de731ed29db4670c1641aedd945c56fd1a3feed (diff) |
protocol: drop leading \0 from socket path
The socket path is currently defined to be:
#define PLY_BOOT_PROTOCOL_SOCKET_PATH "\0/ply-boot-protocol"
The \0 is because it's an abstract socket, and abstract sockets
have a leading NUL. The code always ignores the NUL though and
adds it back later, so it's not needed.
This commit just drops it.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/ply-boot-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/ply-boot-client.c b/src/client/ply-boot-client.c index 5fe30132..5871a988 100644 --- a/src/client/ply-boot-client.c +++ b/src/client/ply-boot-client.c @@ -180,7 +180,7 @@ ply_boot_client_connect (ply_boot_client_t *client, assert (client->disconnect_handler_user_data == NULL); client->socket_fd = - ply_connect_to_unix_socket (PLY_BOOT_PROTOCOL_SOCKET_PATH + 1, + ply_connect_to_unix_socket (PLY_BOOT_PROTOCOL_SOCKET_PATH, PLY_UNIX_SOCKET_TYPE_ABSTRACT); if (client->socket_fd < 0) |