tree-wide: replace AF_LOCAL with AF_UNIX
This commit is contained in:
committed by
Luca Boccassi
parent
bf7a24e50f
commit
618b3642e1
@@ -403,7 +403,7 @@ static int bus_socket_set_transient_property(
|
||||
if (p->address.type < 0)
|
||||
return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid address type: %s", t);
|
||||
|
||||
if (socket_address_family(&p->address) != AF_LOCAL && p->address.type == SOCK_SEQPACKET)
|
||||
if (socket_address_family(&p->address) != AF_UNIX && p->address.type == SOCK_SEQPACKET)
|
||||
return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Address family not supported: %s", a);
|
||||
}
|
||||
|
||||
|
||||
@@ -644,7 +644,7 @@ int config_parse_socket_listen(
|
||||
p->address.type = SOCK_SEQPACKET;
|
||||
}
|
||||
|
||||
if (socket_address_family(&p->address) != AF_LOCAL && p->address.type == SOCK_SEQPACKET) {
|
||||
if (socket_address_family(&p->address) != AF_UNIX && p->address.type == SOCK_SEQPACKET) {
|
||||
log_syntax(unit, LOG_WARNING, filename, line, 0, "Address family not supported, ignoring: %s", rvalue);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user