Introduction
Introduction Statistics Contact Development Disclaimer Help
Pledge on OpenBSD - dwm - dynamic window manager
git clone git://git.suckless.org/dwm
Log
Files
Refs
README
LICENSE
---
commit f40f86fa873bc4acccdf3d929aa0f786993ae31d
parent c3a2e016bb65c00bd44b6461b1b1bbaa61f20093
Author: Klemens Nanni <[email protected]>
Date: Fri, 25 May 2018 07:56:27 +0200
Pledge on OpenBSD
Diffstat:
M dwm.c | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/dwm.c b/dwm.c
@@ -2137,6 +2137,10 @@ main(int argc, char *argv[])
die("dwm: cannot open display");
checkotherwm();
setup();
+#ifdef __OpenBSD__
+ if (pledge("stdio proc exec", NULL) == -1)
+ die("pledge");
+#endif /* __OpenBSD__ */
scan();
run();
cleanup();
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.