]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolve: when writing of private resolv.confs fails, do not remove old copies
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 20 Apr 2020 12:27:44 +0000 (14:27 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 20 Apr 2020 13:48:05 +0000 (15:48 +0200)
commit965228a846146f368f185ed9af5273b484ba8b5d
tree0bdf7e3ef20ce40918a557b2df1e14cdbc860f6e
parent5c35cd5f47a17719773fcf02cafa79ed15f44d68
resolve: when writing of private resolv.confs fails, do not remove old copies

All callers ignore the return value.

This is almost entirely theoretical, since writing to /run is unlikely to
fail..., but the user is almost certainly better off keeping the old copy
around and having working dns resolution with an out-of-date dns server list
than having having a dangling /etc/resolv.conf symlink.
src/resolve/resolved-resolv-conf.c