core: always initialize ExecParamters.bus_endpoint_fd to -1

Otherwise it might be passed in as 0, which is a valid fd, but usually
does not refer to a real endpoint.
This commit is contained in:
Lennart Poettering
2015-05-11 22:18:21 +02:00
parent d3650f0c4b
commit 6f856a0992
4 changed files with 7 additions and 4 deletions
+1
View File
@@ -1398,6 +1398,7 @@ static int socket_spawn(Socket *s, ExecCommand *c, pid_t *_pid) {
.apply_permissions = true,
.apply_chroot = true,
.apply_tty_stdin = true,
.bus_endpoint_fd = -1,
};
assert(s);