open copied url: add exec promise to pledge for OpenBSD

Ref. https://git.suckless.org/sites/commit/a30f1e4947c67cfdde4aa094d45b54c571ef74c5.html
This commit is contained in:
bakkeby 2021-08-18 10:11:34 +02:00
parent 271a807111
commit 0045b68966
1 changed files with 1 additions and 1 deletions

2
st.c
View File

@ -1089,7 +1089,7 @@ ttynew(const char *line, char *cmd, const char *out, char **args)
break;
default:
#ifdef __OpenBSD__
#if RIGHTCLICKTOPLUMB_PATCH
#if RIGHTCLICKTOPLUMB_PATCH || OPENCOPIED_PATCH
if (pledge("stdio rpath tty proc ps exec", NULL) == -1)
#else
if (pledge("stdio rpath tty proc", NULL) == -1)