]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolve: when the stub listener is disabled, symlink stub-resolv.conf to resolv.conf 15495/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 20 Apr 2020 13:22:18 +0000 (15:22 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 20 Apr 2020 13:50:40 +0000 (15:50 +0200)
commitca8b81d923f34ec4bdaafe472f083059873b9793
tree315e65e0431cb4fc7c0eb511875df781b86c6cf9
parent965228a846146f368f185ed9af5273b484ba8b5d
resolve: when the stub listener is disabled, symlink stub-resolv.conf to resolv.conf

When the stub listener is disabled, stub-resolv.conf is useless. Instead of
warning about this, let's just make stub-resolv.conf point to the private
resolv.conf file. (The original bug report asked for "mirroring", but I think
a symlink is nicer than a copy because it is easier to see that a redirection
was made.)

Fixes #14700.
src/resolve/resolved-resolv-conf.c