summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/mailmanctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailmanctl b/bin/mailmanctl
index 0f8616dee..016deae5e 100644
--- a/bin/mailmanctl
+++ b/bin/mailmanctl
@@ -155,7 +155,7 @@ def kill_watcher(sig):
def get_lock_data():
"""Return the hostname, pid, and tempfile"""
fp = open(LOCKFILE)
- filename = fp.read().strip()
+ filename = os.path.split(fp.read().strip())[1]
fp.close()
parts = filename.split('.')
hostname = DOT.join(parts[1:-1])