Add rpath for OpenBSD. - geomyidae - A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
HTML git clone git://r-36.net/geomyidae
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 0e9b1dd3e874665fdf6377ef52f3f41b8b29d155
DIR parent 9884d6e830dba5751c5363086e74b5f9a9c1691d
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 23 Aug 2023 20:01:37 +0200
Add rpath for OpenBSD.
Diffstat:
M main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/main.c b/main.c
@@ -871,7 +871,7 @@ main(int argc, char *argv[])
#ifdef __OpenBSD__
char promises[31]; /* check the size needed in the fork too */
- snprintf(promises, sizeof(promises), "inet stdio proc exec %s",
+ snprintf(promises, sizeof(promises), "rpath inet stdio proc exec %s",
revlookup ? "dns" : "");
if (pledge(promises, NULL) == -1) {
perror("pledge");