]> Sergey Matveev's repositories - public-inbox.git/commit
mbox_lock: dotlock: chdir for relative lock paths
authorEric Wong <e@80x24.org>
Wed, 24 Mar 2021 09:23:28 +0000 (14:23 +0500)
committerEric Wong <e@80x24.org>
Wed, 24 Mar 2021 23:01:16 +0000 (23:01 +0000)
commit5577a83631e057a31489aa1ce8d1d35ac33f9d7d
treee489fb96caff09cc7dd17dfa510f33bd5e65760e
parentc882fd47f0f83f0be9b8c524604e003295e2b1ba
mbox_lock: dotlock: chdir for relative lock paths

Since lei-daemon will fchdir on every request, we must ensure
we're in the correct directory before unlink(2) is called,
since we can't use unlinkat(2) from pure Perl.
lib/PublicInbox/MboxLock.pm
t/mbox_lock.t