Put lockfile in /tmp so that unprivileged users can aquire it
This commit is contained in:
parent
4ce5d439d8
commit
44d5ce660f
@ -221,7 +221,7 @@ impl Realms {
|
||||
// or when adding or removing a realm directory.
|
||||
//
|
||||
fn realmslock() -> Result<FileLock> {
|
||||
let lockpath = Path::new(Self::BASE_PATH)
|
||||
let lockpath = Path::new("/tmp")
|
||||
.join(".realmslock");
|
||||
|
||||
FileLock::acquire(lockpath)
|
||||
|
Loading…
Reference in New Issue
Block a user