dns: follow resolv.conf if it is a symlink for 'rc-manager=file'
Until before 1.2.0, NetworkManager would always write resolv.conf as file, but if /etc/resolv.conf was a symlink, it would follow the link instead of replacing it with a file (, ). With 1.2.0, we initially dropped that behavior and added a new 'rc-manager=none' which writes resolv.conf to /var/run/NetworkManager and symlinks resolv.conf . In case resolv.conf being already a symlink to another target, it would not be replaced . Later, we added 'rc-manager=file', which always writes /etc/resolv.conf as file . With 1.4.0, we will rename 'rc-manager=none' to 'rc-manager=symlink' . This commit now fixes 'rc-manager=file' to restores the pre-1.2 behavior and follow symlinks.  5761e328  https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/324233  4805be2e  583568e1  28879971  cd6a4696 https://github.com/NetworkManager/NetworkManager/pull/7
Showing with 13 additions and 5 deletions