Commit c320885c authored by Lennart Poettering's avatar Lennart Poettering

bus: properly check if kdbus connection worked

parent de297575
......@@ -175,7 +175,7 @@ int bus_kernel_connect(sd_bus *b) {
assert(b->kernel);
b->input_fd = open(b->kernel, O_RDWR|O_NOCTTY|O_CLOEXEC);
if (b->input_fd)
if (b->input_fd < 0)
return -errno;
b->output_fd = b->input_fd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment