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:
parent
fd0cec0366
commit
a92cf7840f
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user