$OpenBSD: patch-src_dunst_c,v 1.1 2017/08/31 20:57:00 sthen Exp $

Index: src/dunst.c
--- src/dunst.c.orig
+++ src/dunst.c
@@ -14,6 +14,9 @@
 #include <stdlib.h>
 #include <time.h>
 
+#include <err.h>
+#include <unistd.h>
+
 #include "dbus.h"
 #include "menu.h"
 #include "notification.h"
@@ -325,6 +328,9 @@ int dunst_main(int argc, char *argv[])
         int owner_id = initdbus();
 
         x_setup();
+	
+        if (pledge("stdio rpath proc exec", NULL) == -1)
+                err(1, "pledge");
 
         if (settings.startup_notification) {
                 notification *n = notification_create();
