Comment 13 for bug 324233

Revision history for this message
TuxInvader (tuxinvader) wrote :

Patch -> If /etc/resolv.conf is a SYMLINK, then overwrite the target file, not the SYMLINK.

Possibly fixes another bug: NM checks if tmp_resolv_conf is a SYMLINK, and if so writes to the file pointed to by the symlink. However, when it replaces resolv.conf, it will do so with the symlink, so /etc/resolv.conf becomes a symlink to the tmp file. See here: if (rename (tmp_resolv_conf, RESOLV_CONF) < 0) {