1
0
forked from brl/citadel-tools

Put lockfile in /tmp so that unprivileged users can aquire it

This commit is contained in:
Bruce Leidl 2019-09-20 18:38:21 -04:00
parent 4ce5d439d8
commit 44d5ce660f

View File

@ -221,7 +221,7 @@ impl Realms {
// or when adding or removing a realm directory. // or when adding or removing a realm directory.
// //
fn realmslock() -> Result<FileLock> { fn realmslock() -> Result<FileLock> {
let lockpath = Path::new(Self::BASE_PATH) let lockpath = Path::new("/tmp")
.join(".realmslock"); .join(".realmslock");
FileLock::acquire(lockpath) FileLock::acquire(lockpath)