| Add rpath for OpenBSD. - geomyidae - A small C-based gopherd. | |
| git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| LICENSE | |
| --- | |
| commit 0e9b1dd3e874665fdf6377ef52f3f41b8b29d155 | |
| parent 9884d6e830dba5751c5363086e74b5f9a9c1691d | |
| Author: Christoph Lohmann <[email protected]> | |
| 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(-) | |
| --- | |
| 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"); |