=== modified file 'wicd/wicd-daemon.py' --- wicd/wicd-daemon.py 2015-02-12 17:01:42 +0000 +++ wicd/wicd-daemon.py 2015-05-03 21:13:30 +0000 @@ -1790,11 +1790,12 @@ # Don't back up if the backup already exists, either as a regular file or a symlink # The backup file should have been cleaned up by wicd, so perhaps it didn't exit cleanly... if not os.path.exists(backup_location) and not os.path.islink(backup_location): - if os.path.islink('/etc/resolv.conf'): - dest = os.readlink('/etc/resolv.conf') - os.symlink(dest, backup_location) + target = '/etc/resolv.conf' + if os.path.islink(target): + target = os.path.realpath(target) + os.symlink(target, backup_location) else: - shutil.copy2('/etc/resolv.conf', backup_location) + shutil.copy2(target, backup_location) os.chmod(backup_location, 0644) except IOError: print 'error backing up resolv.conf'