add rpath to pledge

This commit is contained in:
user
2025-07-09 22:25:08 -04:00
parent 0b3f07862c
commit 1071cdea96

2
main.c
View File

@@ -6,7 +6,7 @@
int main() {
#ifdef __OpenBSD__
if (pledge("inet stdio", NULL) == -1) {
if (pledge("rpath inet stdio", NULL) == -1) {
perror("pledge");
return 1;
}