summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wagner <wagi@monom.org>2016-11-28 18:24:26 +0100
committerLennart Poettering <lennart@poettering.net>2016-11-28 18:24:26 +0100
commita92cf7840ffefc279bc5cc409197d13752dec6e7 (patch)
tree7d588d9e504c66b43abce7f7f12456f9a0edda18
parentfd0cec03668356f283eb6b4e676f46b0c2c30337 (diff)
udevd: check correct return value of fcntl() (#4758)
This looks like a copy&paste error from the code block above.
-rw-r--r--src/udev/udevd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index d336ee003c..895c6f271b 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1345,7 +1345,7 @@ static int listen_fds(int *rctrl, int *rnetlink) {
return log_error_errno(netlink_fd, "could not get uevent fd: %m");
netlink_fd = fcntl(fd, F_DUPFD_CLOEXEC, 3);
- if (ctrl_fd < 0)
+ if (netlink_fd < 0)
return log_error_errno(errno, "could not dup netlink fd: %m");
}