mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09: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:
committed by
Lennart Poettering
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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user