summaryrefslogtreecommitdiff
path: root/xenodm
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2016-10-26 20:08:15 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:34 +0200
commita18fe6d27c42a0edd96f0c93cfdff913549d1e36 (patch)
tree4009a4b9b682cf13657cac6daf01a1976c79f1ac /xenodm
parentae016bc5d8c45222b35ef96340b7b6ec5b28c35a (diff)
Add a "flock" promise. If there are no local cache files for the user, fontconfig may try to lock the shared cache files using fcntl(2).
ok matthieu
Diffstat (limited to 'xenodm')
-rw-r--r--xenodm/dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xenodm/dm.c b/xenodm/dm.c
index 1eaa0e9..d2f3d88 100644
--- a/xenodm/dm.c
+++ b/xenodm/dm.c
@@ -616,7 +616,7 @@ StartDisplay (struct display *d)
if (!WaitForServer (d))
exit (OPENFAILED_DISPLAY);
SetWindowPath(d);
- if (pledge("stdio rpath cpath wpath fattr proc dns inet unix exec prot_exec getpw id", NULL) != 0)
+ if (pledge("stdio rpath cpath wpath fattr flock proc dns inet unix exec prot_exec getpw id", NULL) != 0)
exit(OPENFAILED_DISPLAY);
ManageSession (d);
exit (REMANAGE_DISPLAY);