1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

udevd: check correct return value of fcntl() (#4758)

This looks like a copy&paste error from the code block above.
This commit is contained in:
Daniel Wagner 2016-11-28 18:24:26 +01:00 committed by Lennart Poettering
parent fd0cec0366
commit a92cf7840f

View File

@ -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");
}