From 6f856a0992aee3fb06cb13a761b902657ff228ea Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 11 May 2015 20:13:37 +0200 Subject: 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. --- src/core/mount.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/mount.c') diff --git a/src/core/mount.c b/src/core/mount.c index 65a66b468f..5a1547728b 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -694,6 +694,7 @@ static int mount_spawn(Mount *m, ExecCommand *c, pid_t *_pid) { .apply_permissions = true, .apply_chroot = true, .apply_tty_stdin = true, + .bus_endpoint_fd = -1, }; assert(m); -- cgit v1.2.3-54-g00ecf