Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare resolv.conf in temp file, move it to destination (#7)
Prepare new resolv.conf in temporary file, which is then moved to final destination. If any process watches /etc/resolv.conf file for modifications, it cannot happen incomplete configuration would be read by it. Is able to also delete dangling symlinks, left behind by systemd-resolved for example. Resolves #6 Signed-off-by: Petr Menšík <[email protected]>
- Loading branch information