Skip to content

nm-manager: restore passing correct size to sendfile in copy_lease()

Alexey Kodanev requested to merge akodanev/NetworkManager:copy_lease_v1 into master

Otherwise sendfile() fails with EINVAL when the file offset is greater than zero (pos + size > max), always on the second iteration.

Fixes: 0c6cd07e ('nm-manager: remove lease file if copying dhclient lease fails')

Merge request reports