sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

dwm-pledge-6.1.diff (259B)


      1 Index: dwm.c
      2 --- dwm.c.orig
      3 +++ dwm.c
      4 @@ -2133,6 +2133,8 @@ main(int argc, char *argv[])
      5  		die("dwm: cannot open display\n");
      6  	checkotherwm();
      7  	setup();
      8 +	if (pledge("stdio rpath proc exec", NULL) == -1)
      9 +		die("pledge\n");
     10  	scan();
     11  	run();
     12  	cleanup();