Skip to content

Commit

Permalink
ipc: fix force-filesystem-sockets
Browse files Browse the repository at this point in the history
the /etc/libqb/force-filesystem-sockets option got broken for some
applications in the last security update.
  • Loading branch information
chrissie-c committed Jun 24, 2019
1 parent ed29f84 commit f1bf5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ipc_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ set_sock_addr(struct sockaddr_un *address, const char *socket_name)
address->sun_len = QB_SUN_LEN(address);
#endif

if (!use_filesystem_sockets()) {
if (socket_name[0] == '/' || !use_filesystem_sockets()) {
snprintf(address->sun_path + 1, UNIX_PATH_MAX - 1, "%s", socket_name);
} else {
snprintf(address->sun_path, sizeof(address->sun_path), "%s/%s", SOCKETDIR,
Expand Down

0 comments on commit f1bf5d9

Please sign in to comment.