fix #4135 - handle symlinks in tmp path cleanup

This commit is contained in:
Ronny Pfannschmidt
2018-10-14 21:20:34 +02:00
parent 0be84cd68b
commit 1dfa303b1e
3 changed files with 12 additions and 1 deletions

View File

@@ -173,6 +173,8 @@ def delete_a_numbered_dir(path):
def ensure_deletable(path, consider_lock_dead_if_created_before):
"""checks if a lock exists and breaks it if its considered dead"""
if path.is_symlink():
return False
lock = get_lock_path(path)
if not lock.exists():
return True