Fix typo in deleted mount check

Follow up to PR #402
Fixes #387
This commit is contained in:
Mike McLean 2018-02-12 11:33:26 -05:00
parent ec791b120a
commit ed5ef6458c

View file

@ -42,8 +42,8 @@ def scan_mounts(topdir):
for line in fo.readlines():
path = line.split()[1]
if path.startswith(topdir):
if path.endswith('\040(deleted)'):
path = path[:-10]
if path.endswith(r'\040(deleted)'):
path = path[:-13]
logger.warning('Found deleted mountpoint: %s' % path)
mplist.append(path)
fo.close()