-
Committer:
Scott Moser
-
Date:
2011-10-24 15:57:37 UTC
-
Revision ID:
smoser@ubuntu.com-20111024155737-8sts3fv4wu9unv0v
make the population of resolv.conf atomic with a move
This changes the previous commit by:
* re-adding the use of chmod and chown --reference
* using readlink -f to create a temp file to get the full path
to /etc/resolv.conf (in the case it is a symlink)
* creates a temp file in that directory and populates the final
/etc/resolv.conf with a move.