mirror of
https://github.com/gryf/wicd.git
synced 2025-12-24 23:22:27 +01:00
allow wicd daemon to start even if /etc/resolv.conf is a relative symlink
This commit is contained in:
@@ -1792,7 +1792,7 @@ def main(argv):
|
||||
backup_location = wpath.varlib + 'resolv.conf.orig'
|
||||
# don't back up if .orig exists, probably there cause
|
||||
# wicd exploded
|
||||
if not os.path.exists(backup_location):
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user