From 44d5ce660f1f5cf8a3ad1060b143926a99be5148 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Fri, 20 Sep 2019 18:38:21 -0400 Subject: [PATCH] Put lockfile in /tmp so that unprivileged users can aquire it --- libcitadel/src/realm/realms.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcitadel/src/realm/realms.rs b/libcitadel/src/realm/realms.rs index 7f52545..9433540 100644 --- a/libcitadel/src/realm/realms.rs +++ b/libcitadel/src/realm/realms.rs @@ -221,7 +221,7 @@ impl Realms { // or when adding or removing a realm directory. // fn realmslock() -> Result { - let lockpath = Path::new(Self::BASE_PATH) + let lockpath = Path::new("/tmp") .join(".realmslock"); FileLock::acquire(lockpath)