diff options
| author | bwarsaw | 2002-05-06 04:20:21 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-05-06 04:20:21 +0000 |
| commit | 7369d56d2af881baa738697c19b8eb1559f47ca2 (patch) | |
| tree | 8dfb4859b81b235377073420af733f35cd8b9a79 | |
| parent | 72cc0ad8a70b6d6a7b39a5cb79fc67218d574623 (diff) | |
| download | mailman-7369d56d2af881baa738697c19b8eb1559f47ca2.tar.gz mailman-7369d56d2af881baa738697c19b8eb1559f47ca2.tar.zst mailman-7369d56d2af881baa738697c19b8eb1559f47ca2.zip | |
get_lock_data(): Be sure to os.path.split() the filename because all
the useful data is encoded in the last path component. Otherwise the
calculation gets messed up if the lock file is something like
/usr/local/mailman-2.1/locks/...
| -rw-r--r-- | bin/mailmanctl | 2 |
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]) |
