wicd icon indicating copy to clipboard operation
wicd copied to clipboard

Fixed backing up a resolv.conf symlink when it's path is relative

Open nettux443 opened this issue 11 years ago • 0 comments

Added an os.chdir('/etc') then fed the value of os.readlink('/etc/resolv.conf') into os.path.abspath() and changed back to the old working dir. This fixes an issue where the backed up symlink points to the wrong location eg: ../run/resolvconf/resolv.conf which works from /etc but not from /var/wicd/ it points to /var/run/resolvconf/resolv.conf

nettux443 avatar Oct 14 '13 11:10 nettux443