[systemd-commits] src/libsystemd-bus
Lennart Poettering
lennart at kemper.freedesktop.org
Fri May 10 10:16:01 PDT 2013
src/libsystemd-bus/sd-memfd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0d1b9a964746336bc7e493ee82ad6cf1bdf49dbb
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri May 10 19:15:55 2013 +0200
bus: fix error check in memfd code
diff --git a/src/libsystemd-bus/sd-memfd.c b/src/libsystemd-bus/sd-memfd.c
index 98a8e08..2712a26 100644
--- a/src/libsystemd-bus/sd-memfd.c
+++ b/src/libsystemd-bus/sd-memfd.c
@@ -43,7 +43,7 @@ int sd_memfd_new(sd_memfd **m) {
return -EINVAL;
kdbus = open("/dev/kdbus/control", O_RDWR|O_NOCTTY|O_CLOEXEC);
- if (fd < 0)
+ if (kdbus < 0)
return -errno;
if (ioctl(kdbus, KDBUS_CMD_MEMFD_NEW, &fd) < 0)
More information about the systemd-commits
mailing list