projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3a2e01
)
Pledge on OpenBSD
author
Klemens Nanni
<kn@openbsd.org>
Fri, 25 May 2018 05:56:27 +0000
(07:56 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 25 May 2018 09:49:30 +0000
(11:49 +0200)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index bb95e26c07e594e2717c715dafefd6ae5fb52644..09feae368cec6e4838c4a65cc4837cf61694d0ad 100644
(file)
--- 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();