1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 14:55:26 +03:00

bus: fix kdbus ioctl invocation

This commit is contained in:
Lennart Poettering 2013-04-12 00:43:42 +02:00
parent c320885c9f
commit b4da268999

View File

@ -378,7 +378,7 @@ int bus_kernel_create(const char *name, char **s) {
if (!p) if (!p)
return -ENOMEM; return -ENOMEM;
if (ioctl(fd, KDBUS_CMD_BUS_MAKE, &fname) < 0) { if (ioctl(fd, KDBUS_CMD_BUS_MAKE, fname) < 0) {
close_nointr_nofail(fd); close_nointr_nofail(fd);
free(p); free(p);
return -errno; return -errno;